
Detail Header
From syxUI — written for both platforms, not translated between them.
A floating detail header - back, share and more, on circular buttons.
Navigation · SwiftUI · iOS 17
- navigation
- swiftui
The actual source
HeaderDetail.swift
// Detail Header · syxUI · https://syxui.dev/components/hdr-detail
// Free in any project. Keep this line and credit syxUI where a person can read it.
import SwiftUI
// Transparent detail header - back + share + more
struct HeaderDetail: View {
var body: some View {
HStack {
circleBtn("chevron.left")
Spacer()
HStack(spacing: 10) { circleBtn("square.and.arrow.up"); circleBtn("ellipsis") }
}.frame(width: 340)
}
func circleBtn(_ icon: String) -> some View {
Image(systemName: icon).font(.system(size: 15, weight: .semibold)).foregroundStyle(.primary).frame(width: 38, height: 38).background(Color.primary.opacity(0.06), in: Circle())
}
}
iOS 17 · No dependencies
Dependencies
- SwiftUI
- No external dependencies
Requires iOS 17


