Swiftpack.co - githubdelegate/SwiftQuadrangleClipImage as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by githubdelegate.
githubdelegate/SwiftQuadrangleClipImage 1.1.6
clip image quadrangle
⭐️ 1
🕓 1 week ago
iOS
.package(url: "https://github.com/githubdelegate/SwiftQuadrangleClipImage.git", from: "1.1.6")

ZYQuadrangleClipImageView

demo gif

Install

CocoaPods

 pod 'ZYQuadrangleClipImageView'

Usage

  override func viewDidAppear(_ animated: Bool) {
        super.viewDidAppear(animated)
        
        crop = ZYQuadRangleClipView()
        self.imv.addSubview(crop)
    }

    @IBAction func clipimgs(_ sender: Any) {
        if let cropimg =  self.crop.clipImage() {
            self.clipImv.image = cropimg
            UIView.animate(withDuration: 0.5) {
                self.clipImv.alpha = 1
                self.imv.alpha = 0
            }
        }
    }

GitHub

link
Stars: 1
Last commit: 1 week ago
jonrohan Something's broken? Yell at me @ptrpavlik. Praise and feedback (and money) is also welcome.

Release Notes

1 week ago

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics