danielsaidi / SwiftUIBlurView

This view is also part of SwiftUIKit: https://github.com/danielsaidi/SwiftUIKit
MIT License
126 stars 9 forks source link
cocoapods spm swift swiftui

Version Swift UI Swift 5.1 License Twitter: @danielsaidi

About SwiftUIBlurView

SwiftUIBlurView lets you use UIBlurEffect in SwiftUI. This gives you access to system blur effects like .regular, .prominent, .systemMaterial.

To blur any SwiftUI view, just use the systemBlur modifier:

Image("photo")
    .frame(width: 200, height: 200)
    .systemBlur(style: .prominent)
}

The result looks like this:

Demo App

This project contains a demo app that shows all available system blur styles. To run the demo app, just open and run the SwiftUIBlurView.xcodeproj project.

Installation

Swift Package Manager

https://github.com/danielsaidi/SwiftUIBlurView.git

CocoaPods

pod "SwiftUIBlurView"

Carthage

github "danielsaidi/SwiftUIBlurView"

Contact me

Feel free to reach out if you have questions or if you want to contribute in any way:

License

SwiftUIBlurView is available under the MIT license. See LICENSE file for more info.