TestsTested | ✗ |
LangLanguage | SwiftSwift |
License | MIT |
ReleasedLast Release | Sep 2017 |
SwiftSwift Version | 3.0 |
SPMSupports SPM | ✗ |
Maintained by MaskBlurView.
It is used to apply both background blur and mask layer simultaneously.
iOS 10 requires that you use the mask view for this.
On iOS 9 and 11, use the layer’s mask.
MaskBlurView uses the appropriate method for the version.
To run the example project, clone the repo, and run pod install
from the Example directory first.
let path = UIBezierPath(rect: RectViewSize)
path.append(UIBezierPath(rect: RectWithoutBlur))
let maskBlurView = MaskBlurView(frame: RectViewSize)
maskBlurView.changeEffect(to: .dark)
maskBlurView.apply(with: path)
self.view.addSubview(maskBlurView)
MaskBlurView is available through CocoaPods. To install
it, simply add the following line to your Podfile:
pod 'MaskBlurView'
kimjisoo, [email protected]
MaskBlurView is available under the MIT license. See the LICENSE file for more info.