Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/FluidGroup/PrecisionLevelSlider
Like Photos Editing Slider
https://github.com/FluidGroup/PrecisionLevelSlider
Last synced: about 1 month ago
JSON representation
Like Photos Editing Slider
- Host: GitHub
- URL: https://github.com/FluidGroup/PrecisionLevelSlider
- Owner: FluidGroup
- License: mit
- Created: 2016-11-27T14:34:04.000Z (about 8 years ago)
- Default Branch: main
- Last Pushed: 2024-05-14T05:19:25.000Z (7 months ago)
- Last Synced: 2024-11-09T04:02:58.259Z (about 1 month ago)
- Language: Swift
- Homepage:
- Size: 9.12 MB
- Stars: 155
- Watchers: 7
- Forks: 21
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-cocoa - PrecisionLevelSlider
README
# PrecisionLevelSlider
A slider that allows the user to select a value with a high level of precision.
Not grabbing knobs but sliding reels.
## Features
- No bundle built-in UI
- Make your design for this slider - center indicator and background design.
- Triggers haptic feedback according to value changes.
- Specialized for iOS - SwiftUI, UIKit## Usage
### SwiftUI
```swift
SwiftUIPrecisionLevelSlider(
value: $value,
haptics: .init(trigger: { value in
// trigger haptics according to the value
}),
range: .init(range: -45...45, transform: { $0.rounded(.toNearestOrEven) }),
centerLevel: { value in
// your custom view here
},
track: { value in
// your custom view here
}
)
.tint(.primary)
.frame(height: 50)
```### UIKit
Use `PrecisionLevelSlider`