Sesame-iOS/Sesame/HistoryView.swift
2023-04-11 18:18:31 +02:00

22 lines
449 B
Swift

import SwiftUI
struct HistoryView: View {
let manager: HistoryManagerProtocol
var body: some View {
NavigationView {
List(manager.loadEntries()) { entry in
HistoryListItem(entry: entry)
}
.navigationTitle("History")
}
}
}
struct HistoryView_Previews: PreviewProvider {
static var previews: some View {
HistoryView(manager: HistoryManagerMock())
}
}