Browse Source

Revert "nav: use back chevron in more places"

hitbox is annoying atm

This reverts commit ea0e28d2c5.
profiles-everywhere
William Casarin 3 years ago
parent
commit
3c962ecdfe
  1. 11
      damus/Views/CreateAccountView.swift
  2. 2
      damus/Views/DMChatView.swift
  3. 2
      damus/Views/ProfileView.swift
  4. 2
      damus/Views/SearchView.swift

11
damus/Views/CreateAccountView.swift

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

2
damus/Views/DMChatView.swift

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

2
damus/Views/ProfileView.swift

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

2
damus/Views/SearchView.swift

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

Loading…
Cancel
Save