Recreating Apple Wallet Payment Ring with SwiftUI

Learn how to recreate the Apple Wallet Payment Ring with SwiftUI

ML Musings
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…

--

--

ML Musings

✨ I enjoy pushing the boundaries of JS, Python, SwiftUI and AI. You can support my work through coffee - www.buymeacoffee.com/MLMusings