
Sheet Header
From syxUI — written for both platforms, not translated between them.
A bottom-sheet header - grabber, title and a close button.
Navigation · SwiftUI · iOS 17
- navigation
- swiftui
The actual source
HeaderSheet.swift
// Sheet Header · syxUI · https://syxui.dev/components/hdr-sheet
// Free in any project. Keep this line and credit syxUI where a person can read it.
import SwiftUI
// Bottom-sheet header - grabber + title + close
struct HeaderSheet: View {
var body: some View {
VStack(spacing: 12) {
Capsule().fill(Color.primary.opacity(0.2)).frame(width: 36, height: 5)
HStack {
Text("Filters").font(.system(size: 18, weight: .semibold))
Spacer()
Image(systemName: "xmark").font(.system(size: 13, weight: .bold)).foregroundStyle(.secondary).padding(7).background(Color.primary.opacity(0.06), in: Circle())
}
}.frame(width: 340)
}
}
iOS 17 · No dependencies
Dependencies
- SwiftUI
- No external dependencies
Requires iOS 17


