Skip to content

githubdelegate/SwiftQuadrangleClipImage

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

Watchers

Forks

Packages

No packages published