1
0
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:
William Casarin 2022-07-02 12:32:21 -07:00
parent ef5f92fe21
commit 3c962ecdfe
4 changed files with 0 additions and 17 deletions

View File

@ -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,

View File

@ -119,8 +119,6 @@ struct DMChatView: View {
}
}
.toolbar { Header }
.navigationBarBackButtonHidden(true)
.navigationBarItems(leading: BackNavBasic())
}
}

View File

@ -147,8 +147,6 @@ struct ProfileView: View {
followers.unsubscribe()
// our profilemodel needs a bit more help
}
.navigationBarBackButtonHidden(true)
.navigationBarItems(leading: BackNavBasic())
}
}

View File

@ -25,8 +25,6 @@ struct SearchView: View {
.onDisappear() {
search.unsubscribe()
}
.navigationBarBackButtonHidden(true)
.navigationBarItems(leading: BackNavBasic())
}
}