BlurView

main

Custom blur radius for your UIKit views
MarioIannotta/BlurView

BlurView: Custom blur radius for your UIKit views

Why

SwiftUI has an api to blur any view. This package allows to use the same functionality on UIKit views.

Installation

Swift Package Manager

Usage

import BlurView // import the package

let label = UILabel() 
label.text = "Hi!"

let blurView = BlurView(contentView: label) // instantiate a `BlurView` passing the view you want to blur
blurView.blurRadius = 10 // set a blur radius

Demo

You can find a demo app in the demo folder.

License

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

Description

  • Swift Tools 5.8.0
View More Packages from this Author

Dependencies

  • None
Last updated: Thu Oct 17 2024 17:01:18 GMT-0900 (Hawaii-Aleutian Daylight Time)