PolyKit icon indicating copy to clipboard operation
PolyKit copied to clipboard

Rounded Polygons in SwiftUI

PolyKit

Rounded Polygons in SwiftUI

              

Add to App

  • File / Swift Packages / Add Package Dependecy
  • Search for PolyKit by heestand-xyz
  • Add Up to Next Major from 2.0.0

Example

import SwiftUI
import PolyKit

struct ContentView: View {
    var body: some View {
        Polygon(count: 6, cornerRadius: 60)
    }
}

Add to Package

.package(url: "https://github.com/heestand-xyz/PolyKit.git", from: "2.0.0")