Search bar in SwiftUI (Updated 08/21)
Reading time: 2 min
This tutorial shows you how to create a search bar in SwiftUI. There are two ways of doing it:
- Create a custom view, which works on any SwiftUI Version.
- Use the
searchablemodifier, introduced in Swift 3.
SwiftUI Image Picker
Reading time: 1 min
This recipe shows how to add an image picker to your SwiftUI app. You'll do this by wrapping a UIKit UIImagePickerController in a UIViewControllerRepresentable.
Detect App Moving to Background in SwiftUI
Reading time: 1 min
This recipe shows two ways of detecting when your app goes to foreground or background.
GIF Images in SwiftUI
WebView in SwiftUI
Reading time: 4 min
This recipe shows how to embed a WKWebView into SwiftUI and have a (somewhat) functional browser in your app!