Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/louisdh/bezierpath-polygons

Adds a convenience initalizer to UIBezierPath for generating n-sided regular polygon paths – with rounded corners support – in Swift!
https://github.com/louisdh/bezierpath-polygons

bezier graphics math swift uikit

Last synced: 3 months ago
JSON representation

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

Awesome Lists containing this project

README

        

# UIBezierPath + Polygons 🔸 🔺 🔷

[![Swift](https://img.shields.io/badge/Swift-4.0-orange.svg?style=flat")](https://developer.apple.com/swift/)
[![Twitter](https://img.shields.io/badge/[email protected]?style=flat)](http://twitter.com/LouisDhauwe)
[![Donate](https://img.shields.io/badge/Donate-PayPal-green.svg)](https://paypal.me/louisdhauwe)

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](readme-resources/example.png)

## Requirements

* iOS 8.0+
* Xcode 9.0+

## License

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