0

As you can see image below I want to create blur view with fade in edge effect. Does someone write me codes of how to implement this in ios?

Thanks

please take a look at this image - marked in red rectangle

1 Answers1

1
let blurEffect = UIBlurEffect(style: .Light)
let imageView = UIImageView(image: UIImage(named:))//your ImageView
let visualEffectView = UIVisualEffectView(effect: blurEffect)
imageView.addSubview(visualEffectView)

You might need to change the frame of the visualEffectView to cover your image but this is the basics of it.

NSGangster
  • 2,397
  • 12
  • 22