Sesame-iOS/Sesame/HistoryView.swift

19 lines
341 B
Swift
Raw Normal View History

import SwiftUI
struct HistoryView: View {
let manager: HistoryManager
var body: some View {
List(manager.loadEntries()) { entry in
HistoryListItem(entry: entry)
}
}
}
struct HistoryView_Previews: PreviewProvider {
static var previews: some View {
HistoryView(manager: .init())
}
}