
Wallet Card
From syxUI — written for both platforms, not translated between them.
A credit-card-style balance card with a masked number and brand.
Cards · SwiftUI · iOS 17
- cards
- swiftui
The actual source
WalletCard.swift
// Wallet Card · syxUI · https://syxui.dev/components/card-wallet
// Free in any project. Keep this line and credit syxUI where a person can read it.
import SwiftUI
// Wallet / credit card
struct WalletCard: View {
var body: some View {
VStack(alignment: .leading, spacing: 22) {
HStack {
Text("Balance").font(.system(size: 13)).foregroundStyle(.white.opacity(0.8))
Spacer()
Image(systemName: "wave.3.right").font(.system(size: 16)).foregroundStyle(.white.opacity(0.8))
}
Text("$8,420.50").font(.system(size: 28, weight: .bold)).foregroundStyle(.white)
HStack {
Text("•••• 4829").font(.system(size: 15, weight: .medium)).foregroundStyle(.white.opacity(0.9)).tracking(1)
Spacer()
Text("VISA").font(.system(size: 16, weight: .heavy)).italic().foregroundStyle(.white)
}
}
.padding(20).frame(width: 300)
.background(LinearGradient(colors: [Color(red: 0.18, green: 0.19, blue: 0.28), Color(red: 0.10, green: 0.11, blue: 0.17)], startPoint: .topLeading, endPoint: .bottomTrailing), in: RoundedRectangle(cornerRadius: 20, style: .continuous))
}
}
iOS 17 · No dependencies
Dependencies
- SwiftUI
- No external dependencies
Requires iOS 17


