Recreating Apple Wallet Payment Ring with SwiftUI
Learn how to recreate the Apple Wallet Payment Ring with SwiftUI
2 min readJan 28
--
I wrote these little pieces of code using SwiftUI and Swift Playgrounds on an iPad.
Code
import SwiftUI
struct PaymentRing: View {
@State var frameSize = UIScreen.main.bounds.width - 120
@State var current…