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) {
|
.tabViewBottomAccessoryCompat(useSystemAccessory: false) {
|
||||||
bottomAccessoryContent
|
bottomAccessoryContent
|
||||||
}
|
}
|
||||||
tabBarBackgroundIfAvailable(content)
|
if page == .logs {
|
||||||
|
tabBarBackgroundIfAvailable(
|
||||||
|
content
|
||||||
|
.navigationBarTitleDisplayMode(.inline)
|
||||||
|
)
|
||||||
|
} else {
|
||||||
|
tabBarBackgroundIfAvailable(content)
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
let content = page.contentView
|
let content = page.contentView
|
||||||
.navigationTitle(page.title)
|
.navigationTitle(page.title)
|
||||||
content
|
if page == .logs {
|
||||||
|
content
|
||||||
|
.navigationBarTitleDisplayMode(.inline)
|
||||||
|
} else {
|
||||||
|
content
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user