Skip to content

nRewik/NRShapeTween

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NRShapeTween

Morph the shape easier. Animate basic shape tweening by just setting the side.

picture alt
picture alt

Usage

Initialization

var shapeTweenView = NRShapeTweenView(frame: frame)

Xcode IBDesignable (NRShapeTweenView)

picture alt picture alt

Set The Shape

shapeTweenView.side = 1.0 //must be greater than 1

shapeTweenView.side = 3.33

shapeTweenView.side = 4.0

Animate The Shape

shapeTweenView.animateToSide(6.0, duration: 3.0)

Change Appearance

shapeTweenView.borderColor = UIColor.blackColor()
shapeTweenView.borderWidth = 2.0
shapeTweenView.fillColor = UIColor.blackColor()

Developed by Nutchaphon Rewik

About

Morph the shape easier

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages