Skip to content

feat: Add UI layer (screens, components, views)#1643

Open
bthebladeprimer wants to merge 2 commits into
bn/feature/cc-13-scopes-containerfrom
bn/feature/cc-14-ui-layer
Open

feat: Add UI layer (screens, components, views)#1643
bthebladeprimer wants to merge 2 commits into
bn/feature/cc-13-scopes-containerfrom
bn/feature/cc-14-ui-layer

Conversation

@bthebladeprimer
Copy link
Copy Markdown
Contributor

Summary

  • Add 20+ SwiftUI screens: card form, payment method selection, ACH (mandate, user details, bank collector), Apple Pay, Klarna, PayPal, QR Code, web/form redirect, vaulted payment methods list, country selection, success, error, loading, splash, and delete confirmation
  • Add reusable UI components: input fields (card number, CVV, expiry, cardholder name, email, address, city, state, postal code, OTP), card network selectors (inline + dropdown), payment method buttons/sections, vault section, Apple Pay button
  • Add infrastructure: PrimerInputFieldContainer system with styling/rendering extensions, SecureTextField, PrimerTextFieldExtension
  • Add design system: CheckoutColors, PrimerLayout, AnimationConstants, SlideInModifier
  • Add PrimerSwiftUIBridgeViewController for UIKit integration
  • Add preview utilities: MockCardFormScope, MockDIContainer, MockDesignTokens, MockValidationService
  • Add RTL support utilities

Context

PR 14 of 16 in the CheckoutComponents feature split. Depends on PR 13 (presentation scopes & container wiring).

Notion tracker

Test plan

  • Visual review of SwiftUI screens via Xcode previews
  • Verify input field components render correctly with various states
  • Verify card network selector displays inline and dropdown variants
  • Verify RTL layout support works correctly
  • Verify PrimerSwiftUIBridgeViewController presents SwiftUI views in UIKit host

@bthebladeprimer bthebladeprimer requested a review from a team as a code owner March 26, 2026 15:56
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Mar 26, 2026

Warnings
⚠️ This PR doesn't seem to contain any updated Unit Test 🤔. Please consider double checking it.🙏
⚠️ > Pull Request size seems relatively large. If this Pull Request contains multiple changes, please split each into separate PR will helps faster, easier review.

Generated by 🚫 Danger Swift against 0c26606

@bthebladeprimer bthebladeprimer self-assigned this Mar 26, 2026
@bthebladeprimer bthebladeprimer marked this pull request as draft March 26, 2026 16:32
@bthebladeprimer bthebladeprimer force-pushed the bn/feature/cc-13-scopes-container branch from 9218886 to 5322150 Compare March 31, 2026 14:07
@bthebladeprimer bthebladeprimer force-pushed the bn/feature/cc-14-ui-layer branch from 2d7ca07 to 391b82c Compare March 31, 2026 14:07
@bthebladeprimer bthebladeprimer marked this pull request as ready for review April 3, 2026 18:09
@bthebladeprimer bthebladeprimer force-pushed the bn/feature/cc-13-scopes-container branch from 4f2e4de to fa88163 Compare April 15, 2026 13:03
@bthebladeprimer bthebladeprimer requested a review from a team as a code owner April 15, 2026 13:03
@bthebladeprimer bthebladeprimer force-pushed the bn/feature/cc-14-ui-layer branch from c764046 to 0c26606 Compare April 15, 2026 13:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant