ios - Adding a circle blurred mask layer on UIView -
i'm working xcode 8 , swift 2.3 starting this nice post , my own question , can 2 distinct effects, can't "join" it. : first 1 ( blur ): internal extension uiview { /** add , display on current view blur effect. */ internal func addblureffect(style style: uiblureffectstyle = .extralight, atposition position: int = -1) -> uiview { // blur effect let blureffectview = self.createblureffect(style: style) if position >= 0 { self.insertsubview(blureffectview, atindex: position) } else { self.addsubview(blureffectview) } return blureffectview } internal func createblureffect(style style: uiblureffectstyle = .extralight) -> uiview { let blureffect = uiblureffect(style: style) let blureffectview = uivisualeffectview(effect: blureffect) blureffectview.frame = self.bounds blureffectview.autoresizingmask = [.flexiblewidth, .flexi