This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public struct Bezier { | |
public enum PolygonStyle { case flatsingle, flatdouble, curvesingle, curvedouble, flattruple, curvetruple } | |
static func polygon( | |
sides sideCount: Int = 5, | |
radius: CGFloat = 50.0, | |
startAngle offset: CGFloat = 0.0, | |
style: PolygonStyle = .curvesingle, | |
percentInflection: CGFloat = 0.0) -> BezierPath | |
{ | |
guard sideCount >= 3 else { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
typealias Reducer<StateType, ActionType> = (_ state: StateType, _ action: ActionType) -> StateType |