Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/chenhaiteng/rings
Rings provides some UI with the Ring, Circle or other similar shapes.
https://github.com/chenhaiteng/rings
circle clockview curved-text knob knob-control rich-text ring shapes swift swift-packages swiftui swiftui-framework xcode
Last synced: 2 months ago
JSON representation
Rings provides some UI with the Ring, Circle or other similar shapes.
- Host: GitHub
- URL: https://github.com/chenhaiteng/rings
- Owner: chenhaiteng
- License: mit
- Created: 2021-04-04T06:45:09.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2024-03-07T07:59:15.000Z (11 months ago)
- Last Synced: 2024-08-03T18:11:54.052Z (6 months ago)
- Topics: circle, clockview, curved-text, knob, knob-control, rich-text, ring, shapes, swift, swift-packages, swiftui, swiftui-framework, xcode
- Language: Swift
- Homepage:
- Size: 40.4 MB
- Stars: 32
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
![Icon](Sources/Rings/Documentation.docc/Resources/RingsIcon.png)
# Rings ![GitHub](https://img.shields.io/github/license/chenhaiteng/Rings?style=plastic) ![GitHub release (latest by date)](https://img.shields.io/github/v/release/chenhaiteng/Rings)
**Rings** is a collection of controls which have similar shapes of ring, circle...
It includes following controls, click to see what it looks like:
* **[RingStack](#ringstack)**
* **[ArcStack](#arcstack)**
* **[RingText](#ringtext)**
* **[ClockIndex](#clockindex)**
* **[HandAiguille](#handaiguille)**
* **[ArchimedeanSpiralText](#archimedeanspiraltext)**
* **[SphericText](#spherictext)**
* **[Knob](#knob)**
* **[GaugeMeter](#gaugemeter)**
* **[RingGaugeMeterStyle](#ringgaugemeterstyle)**For more detail please refer to the [documentation](https://chenhaiteng.github.io/Docs/Rings/documentation/rings/)
---
## Installation:
Rings is published with Swift Package Manager, you can get more information at [Swift Package Manager(GitHub)](https://github.com/apple/swift-package-manager), [Package Manager(swift.org)](https://swift.org/package-manager/), and [Swift Packages(Apple)](https://developer.apple.com/documentation/swift_packages)### Install Rings Step by Step
#### - Add to Xcode(To use this package in your application):1. File > Swift Packages > Add Package Dependency...
2. Choose Project you want to add Rings
3. Paste repository https://github.com/chenhaiteng/Rings.git
4. Rules > Version: Up to Next Major 0.4.0
It's can also apply Rules > Branch : main to access latest code.
If you want try some experimental features, you can also apply Rules > Branch : develop**Note:** It might need to link Rings to your target maunally.
1. Open *Project Editor* by tap on root of project navigator
2. Choose the target you want to use Rings.
3. Choose **Build Phases**, and expand **Link Binary With Libraries**
4. Tap on **+** button, and choose Rings to add it.#### - Add to SPM package(To use this package in your library/framework):
```swift
dependencies: [
.package(name: "Rings", url: "https://github.com/chenhaiteng/Rings.git", from: "0.4.0")
// To specify branch, use following statement to instead of.
// .package(name: "Rings", url: "https://github.com/chenhaiteng/Rings.git", .branch("branch_name"))
],
targets: [
.target(
name: "MyPackage",
dependencies: ["Rings"]),
]
```
---## RingStack
![Demo](Sources/Rings/Documentation.docc/Resources/RingStack.gif)## ArcStack
![Demo](Sources/Rings/Documentation.docc/Resources/ArcStack.gif)## RingText
![RingDemo](Sources/Rings/Documentation.docc/Resources/RingTextDemo.gif)## ClockIndex
![Demo](Sources/Rings/Documentation.docc/Resources/ClockIndex.gif)## HandAiguille
![Demo](Sources/Rings/Documentation.docc/Resources/HandAiguille.gif)## ArchimedeanSpiralText
![Demo](Sources/Rings/Documentation.docc/Resources/ArchimedeanSpiralText.gif)## SphericText
![Demo](Sources/Rings/Documentation.docc/Resources/SphericText.gif)## Knob
![Demo](Sources/Rings/Documentation.docc/Resources/Knob.gif)## GaugeMeter
![Demo](Sources/Rings/Documentation.docc/Resources/GaugeMeterDemo.gif)## RingGaugeMeterStyle
![Demo](Sources/Rings/Documentation.docc/Resources/RingGaugeMeterStyle.png)---
# License
Rings is released under the [MIT License](LICENSE).