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