SwiftUI, How to create BlurEffect. Introducing 2 ways.

Add blur with modifier

Nice Cat Behind :)
Blur Effect

Add Blur with UIViewRepresentable

Nice cat behind :)
UIViewRepresentable
Blur style you can choose from

Conclusion

  1. Add blur effect with modifier .blur
  2. Add blur effect with UIViewRepresentable. This approach is recommended because you can have more options.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
KD Knowledge Diet

KD Knowledge Diet

Software Engineer, Mobile Developer living in Seoul. I hate people using difficult words. Why not using simple words? Keep It Simple Stupid!