Set Logs title to inline display mode on iOS
This commit is contained in:
+14
-2
@@ -85,11 +85,23 @@ struct MainView: View {
|
||||
.tabViewBottomAccessoryCompat(useSystemAccessory: false) {
|
||||
bottomAccessoryContent
|
||||
}
|
||||
tabBarBackgroundIfAvailable(content)
|
||||
if page == .logs {
|
||||
tabBarBackgroundIfAvailable(
|
||||
content
|
||||
.navigationBarTitleDisplayMode(.inline)
|
||||
)
|
||||
} else {
|
||||
tabBarBackgroundIfAvailable(content)
|
||||
}
|
||||
} else {
|
||||
let content = page.contentView
|
||||
.navigationTitle(page.title)
|
||||
content
|
||||
if page == .logs {
|
||||
content
|
||||
.navigationBarTitleDisplayMode(.inline)
|
||||
} else {
|
||||
content
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user