_An animatable SwiftUI Shape for drawing a rectangle with curved sine wave along the bottom_.
## Installation ### Xcode Projects Select `File` -> `Swift Packages` -> `Add Package Dependency` and enter `https://github.com/CypherPoet/SwiftUIWavyRectangleShape`. ### Swift Package Manager Projects You can add `SwiftUIWavyRectangleShape` as a package dependency in your `Package.swift` file: ```swift let package = Package( //... dependencies: [ .package( url: "https://github.com/CypherPoet/SwiftUIWavyRectangleShape", .upToNextMinor(from: "0.1.0") ), ], //... ) ``` From there, refer to `SwiftUIWavyRectangleShape` as a "target dependency" in any of _your_ package's targets that need it. ```swift targets: [ .target( name: "YourLibrary", dependencies: [ "SwiftUIWavyRectangleShape", ], ... ), ... ] ``` Then simply `import SwiftUIWavyRectangleShape` wherever you’d like to use it. ## Usage Importing `SwiftUIWavyRectangleShape` will expose the `WavyRectangle` type. ```swift WavyRectangle( phase: .radians(.pi / 6.0), amplitudeRatio: 0.3, frequency: 30 ) .fill(Color.pink) ``` `WavyRectangle` documentation can be found [here](https://cypherpoet.github.io/SwiftUIWavyRectangleShape/), and this project's [example app](https://github.com/CypherPoet/SwiftUIWavyRectangleShape/tree/main/Examples/WavyRectangleShapeDemo) contains a demonstration of more ways to use it.