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
- ArcStack
- RingText
- ClockIndex
- HandAiguille
- ArchimedeanSpiralText
- SphericText
- Knob
- GaugeMeter
- RingGaugeMeterStyle
For more detail please refer to the documentation
Rings is published with Swift Package Manager, you can get more information at Swift Package Manager(GitHub), Package Manager(swift.org), and Swift Packages(Apple)
- File > Swift Packages > Add Package Dependency...
- Choose Project you want to add Rings
- Paste repository https://github.com/chenhaiteng/Rings.git
- 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.
- Open Project Editor by tap on root of project navigator
- Choose the target you want to use Rings.
- Choose Build Phases, and expand Link Binary With Libraries
- Tap on + button, and choose Rings to add it.
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"]),
]
Rings is released under the MIT License.