1
0
Fork 0
mirror of https://github.com/metabolist/metatext.git synced 2024-12-23 05:56:30 +00:00
metatext/Views/SwiftUI/View Controller Representables/IdentitiesView.swift

18 lines
539 B
Swift
Raw Normal View History

2020-08-04 20:26:09 +00:00
// Copyright © 2020 Metabolist. All rights reserved.
2020-09-05 02:31:43 +00:00
import SwiftUI
2020-09-01 07:33:49 +00:00
import ViewModels
2020-08-04 20:26:09 +00:00
2021-01-28 23:15:22 +00:00
struct IdentitiesView: UIViewControllerRepresentable {
let viewModelClosure: () -> IdentitiesViewModel
2020-08-04 20:26:09 +00:00
@EnvironmentObject var rootViewModel: RootViewModel
2021-01-28 23:15:22 +00:00
func makeUIViewController(context: Context) -> IdentitiesViewController {
IdentitiesViewController(viewModel: viewModelClosure(), rootViewModel: rootViewModel)
2020-09-09 05:40:49 +00:00
}
2020-08-04 20:26:09 +00:00
2021-01-28 23:15:22 +00:00
func updateUIViewController(_ uiViewController: IdentitiesViewController, context: Context) {
2020-09-01 07:33:49 +00:00
2020-08-04 20:26:09 +00:00
}
}