MaskBlurView 0.1.1

MaskBlurView 0.1.1

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Sep 2017
SwiftSwift Version 3.0
SPMSupports SPM

Maintained by MaskBlurView.



  • By
  • kjisoo

MaskBlurView



MaskBlurView

alt tag

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.

Example

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)

Requirements

Installation

MaskBlurView is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod 'MaskBlurView'

Author

kimjisoo, [email protected]

License

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