Skip to content

Miqeo/YingYang

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

YingYang

Opensource Ying Yang Fractal animation

It's an easy to use and implement animation for swift 4/5 made with Bezier paths in UIKit.

Usage

The example beneath shows how to implement three different sizes of yingyang. Add the Ying.swift file to your project.

let small = YingYang(frame: .zero)
let bigger = YingYangBigger(frame: .zero)
let biggest = YingYangBiggest(frame: .zero)
view.addSubview(small.setup(mainView: view, rect: CGRect(x: 100, y: 50, width: 200.0, height: 200.0), duration: 3))
view.addSubview(bigger.setup(mainView: view, rect: CGRect(x: 100, y: 300, width: 200.0, height: 200.0), duration: 5))
view.addSubview(biggest.setup(mainView: view, rect: CGRect(x: 100, y: 600, width: 200.0, height: 200.0), duration: 7))  

Upcoming Updates - hopefully

  • Changing colors
  • Changing speed on the fly

About

Opensource Ying Yang Fractal animation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages