Live Activity Content Density
Nucleic-Session: B3643133-163C-4C5D-BE20-1A6B7FB83DA9 Co-authored-by: Nucleic <[email protected]>
This commit is contained in:
@@ -96,6 +96,13 @@ struct SplitRootView: View {
|
|||||||
selection = .session(route)
|
selection = .session(route)
|
||||||
store.pendingRoute = nil
|
store.pendingRoute = nil
|
||||||
}
|
}
|
||||||
|
// A Live Activity tap with work running but nothing waiting: reveal the sidebar, which
|
||||||
|
// always lists the live sessions (the regular-width analogue of the Sessions tab).
|
||||||
|
.onChange(of: store.pendingSessionsList) { _, show in
|
||||||
|
guard show else { return }
|
||||||
|
columnVisibility = .all
|
||||||
|
store.pendingSessionsList = false
|
||||||
|
}
|
||||||
.onAppear {
|
.onAppear {
|
||||||
// Offline UI previews (NUCLEIC_DEMO): open straight into one session.
|
// Offline UI previews (NUCLEIC_DEMO): open straight into one session.
|
||||||
if let raw = ProcessInfo.processInfo.environment["NUCLEIC_DEMO_SESSION"], !raw.isEmpty {
|
if let raw = ProcessInfo.processInfo.environment["NUCLEIC_DEMO_SESSION"], !raw.isEmpty {
|
||||||
|
|||||||
Reference in New Issue
Block a user