Adds a convenience initalizer to UIBezierPath for generating n-sided regular polygon paths – with rounded corners support – in Swift!
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Rounded Polygons.xcodeproj Cleanup Nov 17, 2017
Rounded Polygons Optimization: only calculate start point if needed Nov 18, 2017
readme-resources Update readme example Nov 17, 2017
.codeclimate.yml Add readme Nov 17, 2017
.editorconfig Add readme Nov 17, 2017
.gitignore Swift 2 source code Nov 17, 2017
.swift-version Add readme Nov 17, 2017
LICENSE Add readme Nov 17, 2017
README.md Update README Jan 26, 2018

README.md

UIBezierPath + Polygons 🔸 🔺 🔷

Swift Twitter Donate

This project adds a convenience initalizer to UIBezierPath for generating n-sided regular polygon paths – with rounded corners support – in Swift!

Also included is RoundedRegularPolygonView, a UIView subclass with IBInspectables for certain path properties.

Polygon views in a UIStoryboard

Requirements

  • iOS 8.0+
  • Xcode 9.0+

License

This project is available under the MIT license. See the LICENSE file for more info.