_An animatable SwiftUI Shape for drawing a rectangle with curved sides along the horizontal or vertical axis._## Installation ### Xcode Projects Select `File` -> `Swift Packages` -> `Add Package Dependency` and enter `https://github.com/CypherPoet/SwiftUICurvedRectangleShape`. ### Swift Package Manager Projects You can add `SwiftUICurvedRectangleShape` as a package dependency in your `Package.swift` file: ```swift let package = Package( //... dependencies: [ .package(url: "https://github.com/CypherPoet/SwiftUICurvedRectangleShape", .exact("0.0.1")), ], //... ) ``` From there, refer to `SwiftUICurvedRectangleShape` as a "target dependency" in any of _your_ package's targets that need it. ```swift targets: [ .target( name: "YourLibrary", dependencies: [ "SwiftUICurvedRectangleShape", ], ... ), ... ] ``` Then simply `import SwiftUICurvedRectangleShape` wherever you’d like to use the `CurvedRectangle` type. ## Usage Importing `SwiftUICurvedRectangleShape` will expose the `CurvedRectangle` type. ```swift CurvedRectangle( curveAxis: .horizontal, leadingDepthPercentage: 8, trailingDepthPercentage: 8 ) ``` Full documentation for `CurvedRectangle` can be found [here](https://cypherpoet.github.io/SwiftUICurvedRectangleShape/). Furthermore, the [demo app](./Examples/CurvedRectangeShapeDemo) contains a number of examples and explanations of how it can be used in practice.