Skip to content

Instantly share code, notes, and snippets.

@arunavo4
Created October 18, 2025 10:24
Show Gist options
  • Select an option

  • Save arunavo4/80d0dbd96c0c8e2436cdaf20b84ca6ab to your computer and use it in GitHub Desktop.

Select an option

Save arunavo4/80d0dbd96c0c8e2436cdaf20b84ca6ab to your computer and use it in GitHub Desktop.
Liquid glass custom Button
Button {
showDatePicker = true
} label: {
Label("Date Picker", systemImage: "calendar")
.labelStyle(.iconOnly)
.tint(.primary)
.frame(width: 44, height: 44)
.background(
Circle()
.fill(.backgroundCard)
.shadow(
color: Color.black.opacity(0.08),
radius: 8,
x: 0,
y: 4
)
)
}
.buttonStyle(.plain)
.accessibility(identifier: "CalendarView.datePickerButton")
.glassEffect(.regular.interactive(), in: .circle)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment