MockImagePicker
  • December 23, 2024

Mock UIImagePickerController to simulate the camera in iOS simulator.

Usage


#if targetEnvironment(simulator)
import MockImagePicker
typealias UIImagePickerController = MockImagePicker
typealias UIImagePickerControllerDelegate = MockImagePickerDelegate
#endif

Requirements


  • iOS 9.3+
  • Xcode 9

Installation


pod ‘MockImagePicker’

Legacy versions:

Swift version MockImagePicker version
4.1 (Xcode 9.4) pod 'MiniLayout', '~> 1.2.1'
pod 'MockImagePicker', '~> 1.1.0'

Swift Package Manager:


dependencies: [
.package(url: “https://github.com/yonat/MockImagePicker”, from: “1.3.1”)
]

TODO


implement cameraOverlayView

GitHub


View Github

#imagepicker #ios #iosswift #swift #swiftui
YOU MIGHT ALSO LIKE...
ConfettiView

A SwiftUI View that emits confetti with user-defined shapes, images, and text.

SwiftUI Colour Wheel

A colour wheel made all in SwiftUI. There are 2 different colour wheels to choose from. The first main one ...

ColorPickerRing

A color picker implementation with color wheel appearance written in plain SwiftUI. It is compatible with UIColor and NSColor.

ASCollectionView

This repository is no longer maintained. Here's why: with the release of iOS 16 SwiftUI now enables most of the ...