swift - Blur on MKMapView -


i know question has been asked before, trying put blur on map view in app. i've tried tints map including code this:

var darkblur = uiblureffect(style: uiblureffectstyle.dark) var blurview = uivisualeffectview(effect: darkblur) blurview.frame = mapview.bounds mapview.addsubview(blurview) 

is there way blur map?

did try adding blurview mapview's superview?

works fine me in playground:

blurred map view in playground


Comments