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...
HybridCamera

[video width="192" height="416" mp4="https://swiftgit.com/wp-content/uploads/2024/12/68747470733a2f2f7261776769742e636f6d2f7374796c656b69742f696d672f6d61737465722f7669645f6564697465645f325f326d622e676966.mp4"][/video]

TakeASelfie

An iOS framework that uses the front camera, detects your face and takes a selfie. This api opens the front ...

iOS-Depth-Sampler

Code examples of Depth APIs in iOS

RAImagePicker

Description RAImagePicker is a protocol-oriented framework that provides custom features from the built-in Image Picker Edit.

YPImagePicker

YPImagePicker is an instagram-like photo/video picker for iOS written in pure Swift. It is feature-rich and highly customizable to match ...