Skip to content

carlynorama/TaperSlider

Repository files navigation

TaperSlider

This package provides a slider that can provide non-linear tapers built in to the slider. It has some built in functions, but the developer can provide thier own function and it's inverse pair.

Swift Version

Installation

Requires: Platform targets iOS 15 or later, MacOS 11 or later SwiftUI

It is still under development, but mostly bug fixes at this time.

Usage example

See the ExamplesView in the package but generally once can call it simply:

TaperSlider(value: $slider1Value, taperStyle: .logp1)

with more specificty:

TaperSlider(
    value: $slider3Value,
    outputRange: 1...10,
    taperStyle:  .custominvlogbase(base: 3),
    taperInputRange: 0.5...1.2
)

or even with a cutom function pair:

TaperSlider(
    value: $slider5Value,
    outputRange: 1...10,
    taperStyle: .dangereuse(pair: customFunctionPair, isClamped: false)
    taperInputRange: safeRange
)

Release History

  • 0.0.0
    • Current State. Wouldn't exactly call it "released"

References [references]

Contact and Contributing

Feature not yet available.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages