Mock UIImagePickerController for testing camera based UI in simulator
MockImagePicker
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
CocoaPods:
pod 'MockImagePicker'
Legacy versions:
Swift version | MockImagePicker version |
---|---|
4.1 (Xcode 9.4) | pod 'MiniLayout', '~> 1.2.1' pod 'MockImagePicker', '~> 1.1.0' |
Manually:
Copy Sources/MockImagePicker.swift
and MiniLayout.swift
to your Xcode project.
TODO
- [ ] implement
cameraOverlayView