Skip to content

Using UIKit blur effect in SwiftUI on iOS, tvOS and macOS Catalyst

License

Notifications You must be signed in to change notification settings

SoundBlaster/SwiftUIBlur

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 

Repository files navigation

SwiftUIBlur

Using UIKit blur effect in SwiftUI on iOS, tvOS and macOS Catalyst

This project and its git history demonstrate process of creating universal component for using UIVisualEffectView in SwiftUI environment as any other standard component of this great framework.

Usage:

.background(
    Blur()
        .effectStyle(.systemThickMaterial)
        .intensity(0.5)
)

Component has customizable propert intensity that can change the value of visual opacity and blur radius.

Screenshot of result:

In demo used desing created by Ghulam Rasool 🚀 for Cuberto (Hi, guys, I love you!) UI Elements Design Travel UI Elements

Part of these code is used in Video Clock 4K

About

Using UIKit blur effect in SwiftUI on iOS, tvOS and macOS Catalyst

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages