UISwitch animation app for iOS
UISwitchAnimator
Sample
Installation
required
- OpenCV
- python
- ffmpeg-python
- cv2
installation
- Download this source.
- Download your video.
- Run script to generate json file for animation.
please refer next section
generate json file
- Place generated json file which name is ‘data.json’ under ‘UISwitchAnimator/UISwitchAnimato/’.
generate json file
python generate-json.py <downloaded video path> <width pixel> <height pixel>
sample
python generate-json.py video.mp4 48 36
Usage
launch app and double tap view.