Swiftpack.co - yonat/MockImagePicker as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by yonat.
yonat/MockImagePicker 1.2.5
Mock UIImagePickerController for testing camera based UI in simulator
⭐️ 17
🕓 2 weeks ago
iOS
.package(url: "https://github.com/yonat/MockImagePicker.git", from: "1.2.5")

MockImagePicker

Mock UIImagePickerController to simulate the camera in iOS simulator.

Swift Version Build Status License CocoaPods Compatible
Platform PRs Welcome

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'

Swift Package Manager:

dependencies: [
    .package(url: "https://github.com/yonat/MockImagePicker", from: "1.2.5")
]

TODO

  • ☐ implement cameraOverlayView

Meta

@yonatsharon

https://github.com/yonat/MockImagePicker

GitHub

link
Stars: 17
Last commit: 2 weeks ago
jonrohan Something's broken? Yell at me @ptrpavlik. Praise and feedback (and money) is also welcome.

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics