Skip to content
Balance Header preview
Rendered from the SwiftUI source on this page.

Balance Header

From syxUI — written for both platforms, not translated between them.

A finance greeting header with the total balance.

Navigation · SwiftUI · iOS 17

  • navigation
  • swiftui

The actual source

HeaderBalance.swift
// Balance Header · syxUI · https://syxui.dev/components/hdr-balance
// Free in any project. Keep this line and credit syxUI where a person can read it.

import SwiftUI

// Finance greeting + balance header
struct HeaderBalance: View {
    var body: some View {
        VStack(alignment: .leading, spacing: 6) {
            HStack {
                Text("Good morning, Alex").font(.system(size: 15)).foregroundStyle(.secondary)
                Spacer()
                Image(systemName: "bell").font(.system(size: 18)).foregroundStyle(.primary)
            }
            Text("Total Balance").font(.system(size: 13)).foregroundStyle(.secondary).padding(.top, 4)
            Text("$24,680.00").font(.system(size: 34, weight: .bold))
        }.frame(width: 340)
    }
}
iOS 17 · No dependencies

Dependencies

SwiftUI
No external dependencies

Requires iOS 17