Tab Bar Load Animation
Nucleic-Session: EEC60FAE-8368-49CA-9202-7026C12E7F8C Co-authored-by: Nucleic <[email protected]>
This commit is contained in:
@@ -46,9 +46,10 @@ struct CompactRootView: View {
|
||||
@State private var barHeight: CGFloat = 72
|
||||
|
||||
/// The bar owns the bottom edge on the top-level tabs, but yields it to a pushed session's
|
||||
/// floating glass chat bar — so it's hidden exactly while a session detail is on screen
|
||||
/// (`openSessionID` is set by `SessionDetailView`'s appear/disappear, our animation trigger).
|
||||
private var showsTabBar: Bool { store.openSessionID == nil }
|
||||
/// floating glass chat bar (`openSessionID`, set by `SessionDetailView`'s appear/disappear) and
|
||||
/// to the new-chat composer while it's up (`showNewChat`) — both slide it out, so the composer
|
||||
/// doesn't just stack on top of a lingering tab bar.
|
||||
private var showsTabBar: Bool { store.openSessionID == nil && !showNewChat }
|
||||
|
||||
/// The "+" is inert without control scope or a project to start in, so it's shown only when a
|
||||
/// chat could actually be kicked off (mirrors `NewChatAffordance.canStart`).
|
||||
|
||||
Reference in New Issue
Block a user