SwiftUI Tips

Tips for Writing Cleaner SwiftUI code

Welcome to this blog post on tips for writing better SwiftUI code! In this post, we will share some best practices and techniques that you can use to improve the quality, efficiency, and readability of your SwiftUI code. Writing clean…

Image Picker in SwiftUI

Apple provides is the ability to allow users to select and upload images from their device’s photo library or camera. To implement an image picker in SwiftUI, you will need to create an ImagePicker ViewController. This ViewController will allow the…

Top 10 Pros and Cons of SwiftUI

Before adapting SwiftUI in your current application or a brand new application, you should always consider all the advantages and disadvantages of SwiftUI. SwiftUI may not be good fit if you want to support older version of your application. In…

How to present WebView in SwiftUI?

SwiftUI does not provide any built in WebView. But you can easily create a WebView by the power of UIViewRepresentable. This code represents a stand alone View, so you can call it from any other View just like you would…