Created
July 14, 2025 02:36
-
-
Save khcrysalis/a450f4770bef10dd8f30fa900c092f09 to your computer and use it in GitHub Desktop.
Notification Center Blur (macOS) by pai.pie
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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