Skip to content

Repository files navigation

ZYQuadrangleClipImageView

demo gif

Install

CocoaPods

 pod 'ZYQuadrangleClipImageView'

Usage

overridefunc viewDidAppear(_ animated:Bool){
super.viewDidAppear(animated)
crop =ZYQuadRangleClipView()self.imv.addSubview(crop)}@IBActionfunc clipimgs(_ sender:Any){iflet cropimg =self.crop.clipImage(){self.clipImv.image = cropimg
UIView.animate(withDuration:0.5){self.clipImv.alpha =1self.imv.alpha =0}}}

About

clip image quadrangle

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages