[SF-26] Adopt Leopard brand in iOS app - #25
Conversation
- Add BrandTokens.swift (copy of brand/generated/BrandTokens.swift) - Add LeopardBackgroundView (deterministic Canvas, SplitMix64 seed) - Rewire FlowMode+UI / ContentView / ModeCard to BrandTokens.* - Layered mode-glow shadows (24/64) on selected card - Preserved accentColorHex string accessor for existing presentation tests User-facing follow-up: run 'xcodegen generate' inside sonicflow_app/ios-app/ so the new files are registered in the iOS Xcode target.
SF-26 Apply Leopard brand to iOS SwiftUI app
ScopeApply the Leopard brand to the iOS SwiftUI app. Deliverables
Acceptance
Branch
Depends on |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 7b023fba93
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| SDKROOT = iphoneos; | ||
| TARGETED_DEVICE_FAMILY = "1,2"; | ||
| TEST_HOST = "$(BUILT_PRODUCTS_DIR)/SonicFlow.app/SonicFlow"; | ||
| TEST_HOST = "$(BUILT_PRODUCTS_DIR)/FlowTones.app/FlowTones"; |
There was a problem hiding this comment.
Point TEST_HOST to the app’s actual product name
This sets TEST_HOST to FlowTones.app/FlowTones, but the app target in the same project file still builds with PRODUCT_NAME = SonicFlow (Debug/Release), so running FlowTonesTests can fail to launch the host app because the configured host binary path does not exist. Keeping TEST_HOST aligned with the built product name is required for xcodebuild test to run reliably.
Useful? React with 👍 / 👎.
| lines.push(` public static let ${camel(key)} = Color(hex: "${v.hex}")`); | ||
| } | ||
| } | ||
| lines.push(" public static let panel = Color.black.opacity(0.78)"); |
There was a problem hiding this comment.
Generate native panel color from token instead of hardcoding
The generator hardcodes Neutral.panel to black (Color.black.opacity(0.78) here, and similarly in Kotlin), which ignores palette.neutral.panel.rgba in brand/tokens.json; as a result, native outputs already diverge from the source-of-truth token (CSS uses rgba(18, 18, 22, 0.78)) and future token edits will not propagate to Swift/Kotlin.
Useful? React with 👍 / 👎.
https://linear.app/captain-leopard-ai-engineering/issue/SF-26/apply-leopard-brand-to-ios-swiftui-app
Verification: