Skip to content

Instantly share code, notes, and snippets.

View dejager's full-sized avatar
🦕

Nate de Jager dejager

🦕
View GitHub Profile
@dejager
dejager / RoundedInsettablePolygon.swift
Created October 21, 2022 14:17
A SwiftUI Shape that draws an insettable polygon with a given number of corners and a corner radius.
//
// RoundedInsettablePolygon.swift
//
// Created by Nate on 2022-10-17.
//
import SwiftUI
struct RoundedPolygon: Shape, InsettableShape {
@dejager
dejager / RoundedPolygon.swift
Created October 18, 2022 05:57
A SwiftUI Shape that draws a polygon with a given number of corners and a corner radius.
//
// RoundedPolygon.swift
//
// Created by Nate on 2022-10-17.
//
import SwiftUI
struct RoundedPolygon: Shape {