Skip to content

Instantly share code, notes, and snippets.

View martinlexow's full-sized avatar

Martin Lexow martinlexow

View GitHub Profile
@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 {