metatext-app-ios-iphone-ipad/Views/NewStatusView.swift

23 lines
603 B
Swift
Raw Normal View History

2020-12-06 04:10:27 +01:00
// Copyright © 2020 Metabolist. All rights reserved.
import SwiftUI
import ViewModels
struct NewStatusView: UIViewControllerRepresentable {
let viewModelClosure: () -> NewStatusViewModel
func makeUIViewController(context: Context) -> NewStatusViewController {
2020-12-10 03:44:06 +01:00
NewStatusViewController(viewModel: viewModelClosure(), isShareExtension: false)
2020-12-06 04:10:27 +01:00
}
func updateUIViewController(_ uiViewController: NewStatusViewController, context: Context) {
}
}
struct NewStatusView_Previews: PreviewProvider {
static var previews: some View {
NewStatusView { .preview }
}
}