
Payment Success
A checkout summary whose pay button morphs from a capsule into a spinner and then into a self-drawing checkmark with a ripple and a success haptic. A torn-edge receipt slides up and counts the amount up with numericText.
- button
- success
- animation
snippet.swift484 lines
8 files • Scroll to see all →
/// One line on the checkout summary.public struct PaymentSuccessLineItem: Identifiable, Hashable { public let id: String public var name: String public var detail: String public var quantity: Int public var unitPrice: Double public var systemImage: String public var tint: Color public init(id: String, name: String, detail: String, quantity: Int = 1, unitPrice: Double, systemImage: String, tint: Color) { self.id = id self.name = name self.detail = detail self.quantity = quantity self.unitPrice = unitPrice self.systemImage = systemImage self.tint = tint }// ... (click "Show full code" to see more)Viewing: Model.swift•1 of 8