
Wallet Header
From syxUI — written for both platforms, not translated between them.
A wallet header with title, card count and an add button.
Navigation · SwiftUI · iOS 17
- navigation
- swiftui
The actual source
HeaderWallet.swift
// Wallet Header · syxUI · https://syxui.dev/components/hdr-wallet
// Free in any project. Keep this line and credit syxUI where a person can read it.
import SwiftUI
let hdrBlue = Color(red: 0.0, green: 0.47, blue: 1.0)
// Wallet header - title + balance + add
struct HeaderWallet: View {
var body: some View {
HStack {
VStack(alignment: .leading, spacing: 3) {
Text("My Wallet").font(.system(size: 22, weight: .bold))
Text("3 cards").font(.system(size: 13)).foregroundStyle(.secondary)
}
Spacer()
Image(systemName: "plus").font(.system(size: 16, weight: .semibold)).foregroundStyle(.white).frame(width: 38, height: 38).background(hdrBlue, in: Circle())
}.frame(width: 340)
}
}
iOS 17 · No dependencies
Dependencies
- SwiftUI
- No external dependencies
Requires iOS 17


