Rounded Polygons in SwiftUI
- File / Swift Packages / Add Package Dependecy
- Search for PolyKit by heestand-xyz
- Add Up to Next Major from 2.0.0
import SwiftUI
import PolyKit
struct ContentView: View {
var body: some View {
Polygon(count: 6, cornerRadius: 60)
}
}
.package(url: "https://github.com/heestand-xyz/PolyKit.git", from: "2.0.0")