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: 39 minutes 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 (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-10-07T18:43:56.000Z (almost 2 years ago)
- Last Synced: 2025-04-07T09:01:36.641Z (3 months ago)
- Topics: swiftui
- Language: Swift
- Homepage:
- Size: 13.7 KB
- Stars: 15
- Watchers: 3
- 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.
---

## 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)
```