Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

Commit

Permalink
Fix navigation view
Browse files Browse the repository at this point in the history
  • Loading branch information
cuba committed Oct 3, 2023
1 parent dd02552 commit 399d088
Showing 1 changed file with 4 additions and 17 deletions.
21 changes: 4 additions & 17 deletions Sources/Brave/Frontend/Shields/SubmitReportView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -108,23 +108,10 @@ struct SubmitReportView: View {
}

var body: some View {
if #available(iOS 17.0, *) {
NavigationStack {
#if swift(>=5.9)
scrollContent
.toolbarTitleDisplayMode(.inline)
#else
scrollContent
#endif
}
} else if #available(iOS 16.0, *) {
NavigationStack {
scrollContent
}
} else {
NavigationView {
scrollContent
}
NavigationView {
scrollContent
.navigationBarTitleDisplayMode(.inline)
.navigationViewStyle(.stack)
}
}

Expand Down

0 comments on commit 399d088

Please sign in to comment.