Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fluidgroup/swiftui-touch-slider
A slider empowering users to effortlessly adjust values by simply touching anywhere.
https://github.com/fluidgroup/swiftui-touch-slider
swiftui
Last synced: 2 months ago
JSON representation
A slider empowering users to effortlessly adjust values by simply touching anywhere.
- Host: GitHub
- URL: https://github.com/fluidgroup/swiftui-touch-slider
- Owner: FluidGroup
- License: apache-2.0
- Created: 2023-10-06T02:04:53.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-10-07T18:43:56.000Z (over 1 year ago)
- Last Synced: 2024-04-15T01:19:08.462Z (10 months ago)
- Topics: swiftui
- Language: Swift
- Homepage:
- Size: 13.7 KB
- Stars: 14
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# TouchSlider
A slider empowering users to effortlessly adjust values by simply touching anywhere.
---
![CleanShot 2023-10-06 at 11 12 12](https://github.com/muukii/swiftui-touch-slider/assets/1888355/5bfc5c43-2b64-4238-ae6a-b20f1b949b5d)
## Instructions
```swift
@State var value: Double = 0...
TouchSlider(
direction: .horizontal,
value: $touchSlider_value,
speed: 1, // multiplier to track gesture translation.
foregroundColor: Color.red,
backgroundColor: Color(white: 0.5, opacity: 0.3),
cornerRadius: 16
)
.frame(height: 80)
```