A SwiftUI view showing buttons for taking a photo and opening photo album.
This time we will take a look on how to take photos and browse them on iOS. Using UIImagePickerController Creating user interface for taking photos consists of presenting an instance of UIImagePickerController. Controller needs a delegate and source type what defines if we are going to take a photo or pick a photo from the library. But even before creating the controller it is required to call isSourceTypeAvailable(_:) class method and verifying if the source type is available. For example, it returns false if picker’s sourceType is set to UIImagePickerController.SourceType.photoLibrary… Read more Taking photos on iOS →