Bottom Tab Bar Visibility Adjustment
Nucleic-Session: 747527BF-AEE9-4939-BE70-A14F1F3BBBA8 Co-authored-by: Nucleic <[email protected]>
This commit is contained in:
@@ -106,13 +106,14 @@ struct HomeView: View {
|
|||||||
.navigationBarTitleDisplayMode(.inline)
|
.navigationBarTitleDisplayMode(.inline)
|
||||||
.scrollDismissesKeyboard(.interactively)
|
.scrollDismissesKeyboard(.interactively)
|
||||||
.refreshable { store.refreshSessions() }
|
.refreshable { store.refreshSessions() }
|
||||||
// A floating "+" replaces the old inline start-chat card; opens the glass composer
|
|
||||||
// sheet. An iPad ⌘N (via focusNewChat) opens the same sheet.
|
|
||||||
.newChatAffordance(isPresented: $showNewChat)
|
|
||||||
.onChange(of: focusNewChat.wrappedValue) { _, want in
|
.onChange(of: focusNewChat.wrappedValue) { _, want in
|
||||||
if want { showNewChat = true; focusNewChat.wrappedValue = false }
|
if want { showNewChat = true; focusNewChat.wrappedValue = false }
|
||||||
}
|
}
|
||||||
.safeAreaInset(edge: .bottom) { ConnectionChip().padding(.bottom, 8) }
|
.safeAreaInset(edge: .bottom) { ConnectionChip().padding(.bottom, 8) }
|
||||||
|
// A floating "+" replaces the old inline start-chat card; opens the glass composer
|
||||||
|
// sheet. An iPad ⌘N (via focusNewChat) opens the same sheet. Applied after the chip
|
||||||
|
// inset so it anchors to the true bottom — matching the project page's tight spacing.
|
||||||
|
.newChatAffordance(isPresented: $showNewChat)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user