mirror of
git://jb55.com/damus
synced 2024-09-19 11:43:44 +00:00
Revert "nav: use back chevron in more places"
hitbox is annoying atm
This reverts commit ea0e28d2c5
.
This commit is contained in:
parent
ef5f92fe21
commit
3c962ecdfe
@ -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())
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user