nvrsion: Add review feature access for iOS remote: Enable reviewers to test all features in App Store (or TestFlight) reviews by updating BUILD.md, docs/APP_REVIEW_NOTES.md, RemoteStore.swift, RemoteApp.swift, BuildBanner.swift, and SettingsView.swift.
Nucleic-Promote: 1 Co-authored-by: Nucleic <[email protected]>
This commit is contained in:
@@ -131,3 +131,33 @@ struct BuildBanner: View {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// A slim strip shown while the app is in offline demo mode, so sample data is never mistaken
|
||||
/// for a live connection to a Mac. Sits under the `BuildBanner` in `RootView`.
|
||||
struct DemoBanner: View {
|
||||
@EnvironmentObject var store: RemoteStore
|
||||
|
||||
var body: some View {
|
||||
if store.demoMode {
|
||||
HStack(spacing: 8) {
|
||||
Image(systemName: "play.circle.fill").font(.system(size: 14, weight: .bold))
|
||||
Text("Demo — sample data, no Mac connected")
|
||||
.font(.footnote.weight(.semibold))
|
||||
.lineLimit(1)
|
||||
Spacer(minLength: 8)
|
||||
Text("DEMO")
|
||||
.font(.caption2.weight(.heavy))
|
||||
.tracking(0.9)
|
||||
.padding(.horizontal, 6)
|
||||
.padding(.vertical, 2)
|
||||
.background(.white.opacity(0.18), in: .capsule)
|
||||
}
|
||||
.foregroundStyle(.white.opacity(0.95))
|
||||
.padding(.horizontal, 12)
|
||||
.padding(.vertical, 5)
|
||||
.frame(maxWidth: .infinity)
|
||||
.background(Color(red: 0.36, green: 0.36, blue: 0.42))
|
||||
.accessibilityLabel("Demo mode — sample data, not connected to a Mac.")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user