Cleanup
This commit is contained in:
parent
e75791f670
commit
7161c21807
|
@ -7,7 +7,6 @@ import ViewModels
|
|||
struct SecondaryNavigationView: View {
|
||||
@EnvironmentObject var identification: Identification
|
||||
@EnvironmentObject var tabNavigationViewModel: TabNavigationViewModel
|
||||
@Environment(\.presentationMode) var presentationMode
|
||||
@Environment(\.displayScale) var displayScale: CGFloat
|
||||
|
||||
var body: some View {
|
||||
|
@ -69,7 +68,7 @@ struct SecondaryNavigationView: View {
|
|||
.toolbar {
|
||||
ToolbarItem(placement: .cancellationAction) {
|
||||
Button {
|
||||
presentationMode.wrappedValue.dismiss()
|
||||
tabNavigationViewModel.presentingSecondaryNavigation = false
|
||||
} label: {
|
||||
Image(systemName: "xmark.circle.fill")
|
||||
}
|
||||
|
|
|
@ -27,6 +27,7 @@ struct TabNavigationView: View {
|
|||
.sheet(isPresented: $viewModel.presentingSecondaryNavigation) {
|
||||
SecondaryNavigationView()
|
||||
.environmentObject(viewModel)
|
||||
.environmentObject(rootViewModel)
|
||||
}
|
||||
.alertItem($viewModel.alertItem)
|
||||
.onAppear(perform: viewModel.refreshIdentity)
|
||||
|
|
Loading…
Reference in New Issue