Tab Bar Load Animation

Nucleic-Session: EEC60FAE-8368-49CA-9202-7026C12E7F8C
Co-authored-by: Nucleic <[email protected]>
This commit is contained in:
2026-07-05 18:50:07 -07:00
co-authored by Nucleic
parent b8240aca7b
commit ed43331711
@@ -235,9 +235,17 @@ struct NewChatAffordance: ViewModifier {
extension View { extension View {
/// Add the floating "+" start-chat affordance (glass circle → glass composer sheet). See /// Add the floating "+" start-chat affordance (glass circle → glass composer sheet). See
/// `NewChatAffordance`. /// `NewChatAffordance`.
/// `enabled: false` drops the affordance entirely — the compact shell hosts a single shared "+"
/// beside its tab bar, so the per-page discs (Home, a project page) apply this only at regular
/// width, where there's no tab bar to carry it.
@ViewBuilder
func newChatAffordance(project: WireProject? = nil, isPresented: Binding<Bool>, func newChatAffordance(project: WireProject? = nil, isPresented: Binding<Bool>,
showsButton: Bool = true) -> some View { showsButton: Bool = true, enabled: Bool = true) -> some View {
modifier(NewChatAffordance(project: project, isPresented: isPresented, showsButton: showsButton)) if enabled {
modifier(NewChatAffordance(project: project, isPresented: isPresented, showsButton: showsButton))
} else {
self
}
} }
} }