PrecisionLevelSlider

2.1.0

Like Photos Editing Slider
FluidGroup/PrecisionLevelSlider

What's New

2.1.0

2024-02-27T14:56:32Z

What's Changed

New Contributors

Full Changelog: 2.0.2...2.1.0

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

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

Description

  • Swift Tools 5.9.0
View More Packages from this Author

Dependencies

Last updated: Fri May 24 2024 16:06:08 GMT-0900 (Hawaii-Aleutian Daylight Time)