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

Section Header

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

A grouped-list section header with an action.

Cards · SwiftUI · iOS 17

  • cards
  • swiftui

The actual source

SectionHeaderRow.swift
// Section Header · syxUI · https://syxui.dev/components/list-section-header
// Free in any project. Keep this line and credit syxUI where a person can read it.

import SwiftUI

let listBlue = Color(red: 0.0, green: 0.47, blue: 1.0)

// Section header
struct SectionHeaderRow: View {
    var body: some View {
        HStack { Text("APPEARANCE").font(.system(size: 12, weight: .semibold)).foregroundStyle(.secondary).tracking(0.6); Spacer(); Text("Edit").font(.system(size: 13, weight: .medium)).foregroundStyle(listBlue) }.frame(width: 320)
    }
}
iOS 17 · No dependencies

Dependencies

SwiftUI
No external dependencies

Requires iOS 17