Profile
Back to NewsBack
GitHub Trending 1 min
Reader Mode
younatics/Triangulation: Triangulation effect in iOS

younatics/Triangulation: Triangulation effect in iOS

6 hours ago

Triangulation

Swift Package Manager</a> CocoaPods</a> Platform: iOS 15.0+</a> Swift 6.0</a> License: MIT</a>

Introduction

📐 Triangulate your image! Triangulation will magically change your image like this!

| Before | After | | :----------: | :-----------------------: | | !Before | !After |

Requirements

Triangulation is written in Swift 6.0 and requires iOS 15.0 or later. It supports Swift Package Manager and CocoaPods.

Installation

Swift Package Manager

In Xcode, choose File ▸ Add Package Dependencies… and enter:

https://github.com/younatics/Triangulation.git

Or add it to your Package.swift:

dependencies: [
    .package(url: "https://github.com/younatics/Triangulation.git", from: "2.0.0")
]

CocoaPods

Triangulation 2.0.0 is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'Triangulation', '2.0.0'

Usage

Add TriangulationView with custom cell size. That's it!

import Triangulation

let triangleView = TriangulationView(frame: view.bounds, image: image, cellSize: 40) view.addSubview(triangleView)

References

Please tell me or make pull request if you use this library in your application :)

Author

younatics Twitter

License

Triangulation is available under the MIT license. See the LICENSE file for more info.
Chat with me