Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/regexident/enhancedroundedrectangle
A reimplementation of SwiftUI's RoundedRectangle with support for non-uniform corner radii
https://github.com/regexident/enhancedroundedrectangle
swiftui swiftui-components swiftui-framework
Last synced: 18 days ago
JSON representation
A reimplementation of SwiftUI's RoundedRectangle with support for non-uniform corner radii
- Host: GitHub
- URL: https://github.com/regexident/enhancedroundedrectangle
- Owner: regexident
- License: mpl-2.0
- Created: 2020-05-26T09:33:11.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-05-27T00:47:46.000Z (over 4 years ago)
- Last Synced: 2025-01-05T14:39:53.679Z (about 1 month ago)
- Topics: swiftui, swiftui-components, swiftui-framework
- Language: Swift
- Homepage:
- Size: 63.5 KB
- Stars: 5
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# EnhancedRoundedRectangle
A reimplementation of SwiftUI's `RoundedRectangle` with support for non-uniform corner radii.
## Usage
```swift
EnhancedRoundedRectangle(
cornerRadius: .init(
topLeft: 10.0,
topRight: 20.0,
bottomRight: 30.0,
bottomLeft: 40.0
),
style: .circular // .continuous
)
.fill(Color.gray)
.frame(width: 100.0, height: 100.0)
```![Preview](Preview.png)
## Installation
To use **EnhancedRoundedRectangle** to your project add this line to your `Package.swift` file:
```swift
.package(
url: "https://github.com/regexident/EnhancedRoundedRectangle",
from: ""
),
```## License
**EnhancedRoundedRectangle** is available under a **MPL-2 license**. See the `LICENSE` file for more info.
## Contributing
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you shall be licensed as above, without any additional terms or conditions.