Skip to content

Swift实现的超酷的碎纸机动画:包含2种模式:纸条和纸片;

Notifications You must be signed in to change notification settings

Fnoz/FNPaperShredder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

FNPaperShredder

Swift实现的超酷的碎纸机动画:包含2种模式:纸条和纸片;

点子来源于这里,不过增加了一种模式。

实际效果很流畅,GIF有点卡。

Animating Animating

###基础使用Demo:

let paperShredder  = FNPaperShredder.init(frame: CGRect.init(x: 0, y: 0, width: 200, height: 200))
view.addSubview(paperShredder)
paperShredder.type = .Bar
//开始裁纸
paperShredder.start()
//恢复原状
paperShredder.reset(true)

###玩玩,懒得弄Pod~

About

Swift实现的超酷的碎纸机动画:包含2种模式:纸条和纸片;

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages