Fix mute screen layout on iPad

Closes #276
This commit is contained in:
Shadowfacts 2022-11-29 10:23:00 -05:00
parent 21874b0966
commit a77b090435
1 changed files with 9 additions and 2 deletions

View File

@ -40,9 +40,16 @@ struct MuteAccountView: View {
@State private var error: Error? @State private var error: Error?
var body: some View { var body: some View {
if #available(iOS 16.0, *) {
NavigationStack {
navigationViewContent
}
} else {
NavigationView { NavigationView {
navigationViewContent navigationViewContent
} }
.navigationViewStyle(.stack)
}
} }
private var navigationViewContent: some View { private var navigationViewContent: some View {