Bottom Tab Bar Visibility Adjustment
Nucleic-Session: 747527BF-AEE9-4939-BE70-A14F1F3BBBA8 Co-authored-by: Nucleic <[email protected]>
This commit is contained in:
@@ -27,6 +27,10 @@ struct SessionDetailView: View {
|
|||||||
.safeAreaInset(edge: .bottom) { actionArea }
|
.safeAreaInset(edge: .bottom) { actionArea }
|
||||||
.navigationTitle(summary?.title ?? "Session")
|
.navigationTitle(summary?.title ?? "Session")
|
||||||
.navigationBarTitleDisplayMode(.inline)
|
.navigationBarTitleDisplayMode(.inline)
|
||||||
|
// With a session open the floating chat bar owns the bottom edge; the tab bar below it
|
||||||
|
// would be a redundant second bar (and clip the glass action area), so hide it while
|
||||||
|
// this detail is pushed. A no-op in the iPad split, which has no tab bar.
|
||||||
|
.toolbar(.hidden, for: .tabBar)
|
||||||
.toolbar {
|
.toolbar {
|
||||||
ToolbarItem(placement: .topBarTrailing) { sessionMenu }
|
ToolbarItem(placement: .topBarTrailing) { sessionMenu }
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user