Skip to content

feat: add Demo app with all BitcoinUI components#130

Merged
reez merged 5 commits intoreez:mainfrom
r1b2ns:feat/app-demo
Mar 19, 2026
Merged

feat: add Demo app with all BitcoinUI components#130
reez merged 5 commits intoreez:mainfrom
r1b2ns:feat/app-demo

Conversation

@r1b2ns
Copy link
Contributor

@r1b2ns r1b2ns commented Mar 6, 2026

Summary

  • Add Demo.swiftpm — a runnable iOS demo app showcasing all BitcoinUI components
  • Fix missing CFBundleIdentifier crash on iOS Simulator by generating Demo.xcodeproj via xcodegen
  • Add demo views for all components: Buttons, Address, QR Code, Seed Phrase, Text Styles, Colors, Images
  • Add SnapshotsDemo/ screenshots (resized to 400×866) and update README with Demo App section

Demo App

Open Demo.swiftpm/Demo.xcodeproj in Xcode, select an iOS Simulator, and press Run (⌘R).

Test plan

  • Open Demo.swiftpm/Demo.xcodeproj in Xcode
  • Build and run on an iOS Simulator (iOS 16+)
  • Verify all 7 navigation links work: Buttons, Address, QR Code, Seed Phrase, Text Styles, Colors, Images
  • Verify no crash on launch (bundle ID resolved correctly)
  • Verify swift build succeeds for both the root package and Demo.swiftpm

r1b2ns added 4 commits March 6, 2026 09:54
Adds a SwiftUI demo app (openable in Xcode or Swift Playgrounds) that
showcases BitcoinUI components. Home screen lists available components;
currently includes a Buttons page showing all three button styles
(BitcoinFilled, BitcoinOutlined, BitcoinPlain) with their variants.
- Add Demo.xcodeproj generated via xcodegen with PRODUCT_BUNDLE_IDENTIFIER=org.bitcoinui.demo
- Add Info.plist with CFBundleIdentifier to fix missing bundleID crash on iOS Simulator
- Add project.yml (xcodegen spec) for reproducible project generation
- Add AppInfo.json for Swift Playgrounds bundle ID prefix
- Update .gitignore to exclude Demo.swiftpm/.build and .claude
- Add AddressView: AddressFormattedView with 2/3/4 column variants
- Add QRCodeDemoView: bitcoin, lightning, BIP21 and custom color variants
- Add SeedPhrasesDemoView: 12/24 words, paging, privacy sensitive
- Add TextStylesDemoView: BitcoinTitle1-5 and BitcoinBody1-5
- Add ColorsDemoView: brand, neutral and special color swatches
- Add ImagesDemoView: all hardware wallet images in adaptive grid
- Extract ComponentSection to shared file, remove private duplicate
- Reorganize sources into Components/ subdirectory
- Update ContentView with Components and Foundations sections
- Resize all 8 SnapshotsDemo images from 1170x2532 to 400x866
- Add Demo App section to README with run instructions
- Show all 8 screenshots inline in the README
- Add Demo App link to table of contents
@vercel
Copy link

vercel bot commented Mar 6, 2026

@r1b2ns is attempting to deploy a commit to the reez1's projects Team on Vercel.

A member of the Team first needs to authorize it.

@vercel
Copy link

vercel bot commented Mar 6, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
bitcoin-ui Ready Ready Preview, Comment Mar 6, 2026 4:38pm

Copy link
Owner

@reez reez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks awesome. I only have 1 question/comment before I give this thing an ACK

Copy link
Owner

@reez reez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK 4983a5d

This is cool!

@reez reez merged commit 02262eb into reez:main Mar 19, 2026
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants