1
0
mirror of https://github.com/metabolist/metatext synced 2024-12-24 17:00:50 +01:00
metatext-app-ios-iphone-ipad/Views/StatusListView.swift

27 lines
613 B
Swift
Raw Normal View History

2020-08-21 04:29:01 +02:00
// Copyright © 2020 Metabolist. All rights reserved.
import SwiftUI
2020-09-01 09:33:49 +02:00
import ViewModels
2020-08-21 04:29:01 +02:00
struct StatusListView: UIViewControllerRepresentable {
2020-08-26 23:20:44 +02:00
let viewModel: StatusListViewModel
2020-08-21 04:29:01 +02:00
func makeUIViewController(context: Context) -> StatusListViewController {
StatusListViewController(viewModel: viewModel)
}
func updateUIViewController(_ uiViewController: StatusListViewController, context: Context) {
}
}
2020-08-27 00:36:11 +02:00
#if DEBUG
2020-09-01 09:33:49 +02:00
import PreviewViewModels
2020-08-27 00:36:11 +02:00
struct StatusListView_Previews: PreviewProvider {
static var previews: some View {
2020-09-01 09:33:49 +02:00
StatusListView(viewModel: .mock())
2020-08-27 00:36:11 +02:00
}
}
#endif