mirror of
https://github.com/metabolist/metatext.git
synced 2024-11-25 09:41:00 +00:00
Cleanup
This commit is contained in:
parent
e75791f670
commit
7161c21807
2 changed files with 2 additions and 2 deletions
|
@ -7,7 +7,6 @@ import ViewModels
|
||||||
struct SecondaryNavigationView: View {
|
struct SecondaryNavigationView: View {
|
||||||
@EnvironmentObject var identification: Identification
|
@EnvironmentObject var identification: Identification
|
||||||
@EnvironmentObject var tabNavigationViewModel: TabNavigationViewModel
|
@EnvironmentObject var tabNavigationViewModel: TabNavigationViewModel
|
||||||
@Environment(\.presentationMode) var presentationMode
|
|
||||||
@Environment(\.displayScale) var displayScale: CGFloat
|
@Environment(\.displayScale) var displayScale: CGFloat
|
||||||
|
|
||||||
var body: some View {
|
var body: some View {
|
||||||
|
@ -69,7 +68,7 @@ struct SecondaryNavigationView: View {
|
||||||
.toolbar {
|
.toolbar {
|
||||||
ToolbarItem(placement: .cancellationAction) {
|
ToolbarItem(placement: .cancellationAction) {
|
||||||
Button {
|
Button {
|
||||||
presentationMode.wrappedValue.dismiss()
|
tabNavigationViewModel.presentingSecondaryNavigation = false
|
||||||
} label: {
|
} label: {
|
||||||
Image(systemName: "xmark.circle.fill")
|
Image(systemName: "xmark.circle.fill")
|
||||||
}
|
}
|
||||||
|
|
|
@ -27,6 +27,7 @@ struct TabNavigationView: View {
|
||||||
.sheet(isPresented: $viewModel.presentingSecondaryNavigation) {
|
.sheet(isPresented: $viewModel.presentingSecondaryNavigation) {
|
||||||
SecondaryNavigationView()
|
SecondaryNavigationView()
|
||||||
.environmentObject(viewModel)
|
.environmentObject(viewModel)
|
||||||
|
.environmentObject(rootViewModel)
|
||||||
}
|
}
|
||||||
.alertItem($viewModel.alertItem)
|
.alertItem($viewModel.alertItem)
|
||||||
.onAppear(perform: viewModel.refreshIdentity)
|
.onAppear(perform: viewModel.refreshIdentity)
|
||||||
|
|
Loading…
Reference in a new issue