UISwitch animation app for iOS

UISwitchAnimator

Sample

tap to open youtube video

Installation

required

  • OpenCV
  • python
    • ffmpeg-python
    • cv2

installation

  1. Download this source.
  2. Download your video.
  3. Run script to generate json file for animation. please refer next section generate json file
  4. 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.

GitHub

View Github