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...
MijickPopups Hero

  Popups Alerts Resizable Sheets Banners

SwiftUI Tooltip

This package provides you with an easy way to show tooltips over any SwiftUI view, since Apple does not provide ...

SimpleToast for SwiftUI

SimpleToast is a simple, lightweight, flexible and easy to use library to show toasts / popup notifications inside iOS or ...

SSToastMessage

Create Toast Views with Minimal Effort in SwiftUI Using SSToastMessage. SSToastMessage enables you to effortlessly add toast notifications, alerts, and ...

ToastUI

A simple way to show toast in SwiftUI   Getting Started • Documentation • Change Log