2020-08-04 20:26:09 +00:00
|
|
|
// Copyright © 2020 Metabolist. All rights reserved.
|
|
|
|
|
2021-01-08 02:29:08 +00:00
|
|
|
import Kingfisher
|
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
|
|
|
}
|
|
|
|
}
|