Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yonat/MockImagePicker
Mock UIImagePickerController for testing camera based UI in simulator
https://github.com/yonat/MockImagePicker
camera ios-simulator mock simulator swift testing uiimagepickercontroller
Last synced: about 1 month ago
JSON representation
Mock UIImagePickerController for testing camera based UI in simulator
- Host: GitHub
- URL: https://github.com/yonat/MockImagePicker
- Owner: yonat
- License: mit
- Created: 2018-07-01T12:07:05.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-11-01T14:09:47.000Z (2 months ago)
- Last Synced: 2024-12-01T15:21:02.163Z (about 1 month ago)
- Topics: camera, ios-simulator, mock, simulator, swift, testing, uiimagepickercontroller
- Language: Swift
- Homepage:
- Size: 122 KB
- Stars: 23
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Funding: .github/FUNDING.yml
- License: LICENSE.txt
Awesome Lists containing this project
- awesome-ios - MockImagePicker - Mock UIImagePickerController for testing camera based UI in simulator. (Hardware / Camera)
- awesome-ios-star - MockImagePicker - Mock UIImagePickerController for testing camera based UI in simulator. (Hardware / Camera)
README
# MockImagePicker
Mock UIImagePickerController to simulate the camera in iOS simulator.[![Swift Version][swift-image]][swift-url]
[![Build Status][travis-image]][travis-url]
[![License][license-image]][license-url]
[![CocoaPods Compatible](https://img.shields.io/cocoapods/v/MockImagePicker.svg)](https://img.shields.io/cocoapods/v/MockImagePicker.svg)
[![Platform](https://img.shields.io/cocoapods/p/MockImagePicker.svg?style=flat)](http://cocoapods.org/pods/MockImagePicker)
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](http://makeapullrequest.com)## Usage
```swift
#if targetEnvironment(simulator)
import MockImagePicker
typealias UIImagePickerController = MockImagePicker
typealias UIImagePickerControllerDelegate = MockImagePickerDelegate
#endif
```## Requirements
- iOS 9.3+
- Xcode 9## Installation
### CocoaPods:
```ruby
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:
```swift
dependencies: [
.package(url: "https://github.com/yonat/MockImagePicker", from: "1.3.1")
]
```## TODO
- [ ] implement `cameraOverlayView`
## Meta
[@yonatsharon](https://twitter.com/yonatsharon)
[https://github.com/yonat/MockImagePicker](https://github.com/yonat/MockImagePicker)
[swift-image]:https://img.shields.io/badge/swift-4.2-orange.svg
[swift-url]: https://swift.org/
[license-image]: https://img.shields.io/badge/License-MIT-blue.svg
[license-url]: LICENSE.txt
[travis-image]: https://img.shields.io/travis/dbader/node-datadog-metrics/master.svg?style=flat-square
[travis-url]: https://travis-ci.org/dbader/node-datadog-metrics
[codebeat-image]: https://codebeat.co/badges/c19b47ea-2f9d-45df-8458-b2d952fe9dad
[codebeat-url]: https://codebeat.co/projects/github-com-vsouza-awesomeios-com