目录

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.

关于
317.0 KB
邀请码
    Gitlink(确实开源)
  • 加入我们
  • 官网邮箱:gitlink@ccf.org.cn
  • QQ群
  • QQ群
  • 公众号
  • 公众号

版权所有:中国计算机学会技术支持:开源发展技术委员会
京ICP备13000930号-9 京公网安备 11010802032778号