SwiftUI Image from Assets
Reading time: 1 min
This quick recipe shows how to display an image from Assets catalog in SwiftUI.
Zoom Image in SwiftUI
Reading time: 4 min
This recipe shows how to zoom an image in SwiftUI using the pinch/magnify gesture. The image is zoomed in or out at the midpoint between the fingers, supports dragging and double tap to zoom in or reset.
SwiftUI Load Remote Image (Any Version)
Reading time: 3 min
This recipe provides a drop-in replacement for iOS 15 AsyncImage. This allows you to load images from remote sources on any SwiftUI version, with the code being exactly the same (minus the Compat
at the end of name :]).
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
.