iOS Camera Simulator
iCimulator allows us to use camera functions on iOS Simulator!
Support for AVFoundation & UIImagePickerController !
Installation ?
CocoaPods
You can use CocoaPods to install iCimulator
by adding it to your Podfile
:
Carthage
Create a Cartfile
that lists the framework and run carthage update
. Follow the instructions to add $(SRCROOT)/Carthage/Build/iOS/iCimulator.framework
to an iOS project.
github "YuigaWada/iCimulator"
Manually
- Download and drop
iCimulator
in your project. - Congratulations!
Usage ?
Just 5 steps!
- Prepare your mock data. (image/video)
- Install
iCimulator
. - Copy
iCimulator.swift
andiCimulator.plist
to your project. - Set up
iCimulator.plist
, which is described what kind of mock data is used. - Link
iCimulator.swift
andiCimulator.plist
to your project.
You can copy iCimulator.swift
and iCimulator.plist
from template
folder.
**This 5-Steps MUST BE DONE on all projects which use camera functions.**
iCimulator.plist
Key | Value | Notes |
---|---|---|
Type | Image | You can set an image as a mock |
Video | You can set a video as a mock | |
Argument | ... | Write here path of your mock data |