Skip to content

Instantly share code, notes, and snippets.

@khcrysalis
Created July 14, 2025 02:36
Show Gist options
  • Select an option

  • Save khcrysalis/a450f4770bef10dd8f30fa900c092f09 to your computer and use it in GitHub Desktop.

Select an option

Save khcrysalis/a450f4770bef10dd8f30fa900c092f09 to your computer and use it in GitHub Desktop.
Notification Center Blur (macOS) by pai.pie
import SwiftUI
struct ContentView: View {
var body: some View {
ZStack {
RoundedRectangle(cornerRadius: 120)
.fill(.ultraThinMaterial)
.mask(
RoundedRectangle(cornerRadius: 120)
.blur(radius: 40)
.padding(70)
)
Form {
Text("Ball")
}
.formStyle(.grouped)
.scrollContentBackground(.hidden)
}
.onAppear {
NSApplication.shared.windows.first?.backgroundColor = .clear
NSApplication.shared.windows.first?.hasShadow = false
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment