Skip to content
Large Title preview
Rendered from the SwiftUI source on this page.

Large Title

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

An iOS large-title header with a date eyebrow and an action button.

Navigation · SwiftUI · iOS 17

  • navigation
  • swiftui

The actual source

HeaderLargeTitle.swift
// Large Title · syxUI · https://syxui.dev/components/hdr-large-title
// 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)

// Large iOS title with a date eyebrow and action
struct HeaderLargeTitle: View {
    var body: some View {
        VStack(alignment: .leading, spacing: 3) {
            HStack {
                Text("WEDNESDAY, JUL 23").font(.system(size: 12, weight: .semibold)).foregroundStyle(.secondary).tracking(0.5)
                Spacer()
                Image(systemName: "ellipsis.circle").font(.system(size: 20)).foregroundStyle(hdrBlue)
            }
            Text("Inbox").font(.system(size: 34, weight: .bold))
        }.frame(width: 350)
    }
}
iOS 17 · No dependencies

Dependencies

SwiftUI
No external dependencies

Requires iOS 17