Revert "nav: use back chevron in more places"
hitbox is annoying atm
This reverts commit ea0e28d2c5.
This commit is contained in:
@@ -101,17 +101,6 @@ struct BackNav: View {
|
||||
}
|
||||
}
|
||||
|
||||
struct BackNavBasic: View {
|
||||
@Environment(\.dismiss) var dismiss
|
||||
|
||||
var body: some View {
|
||||
Image(systemName: "chevron.backward")
|
||||
.onTapGesture {
|
||||
self.dismiss()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
extension View {
|
||||
func placeholder<Content: View>(
|
||||
when shouldShow: Bool,
|
||||
|
||||
@@ -119,8 +119,6 @@ struct DMChatView: View {
|
||||
}
|
||||
}
|
||||
.toolbar { Header }
|
||||
.navigationBarBackButtonHidden(true)
|
||||
.navigationBarItems(leading: BackNavBasic())
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -147,8 +147,6 @@ struct ProfileView: View {
|
||||
followers.unsubscribe()
|
||||
// our profilemodel needs a bit more help
|
||||
}
|
||||
.navigationBarBackButtonHidden(true)
|
||||
.navigationBarItems(leading: BackNavBasic())
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -25,8 +25,6 @@ struct SearchView: View {
|
||||
.onDisappear() {
|
||||
search.unsubscribe()
|
||||
}
|
||||
.navigationBarBackButtonHidden(true)
|
||||
.navigationBarItems(leading: BackNavBasic())
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user