CompactSlider

1.1.5

CompactSlider is a SwiftUI control for macOS, iOS and watchOS.
buh/CompactSlider

What's New

1.1.5

2023-03-12T19:07:20Z

Added the scale visibility. Now it's possible to completely hide it or make it always visible. The default value is .hovering.

cover3

CompactSlider is a control for selecting a value from a bounded linear range of values.

The slider is a replacement for the build-in slider and is designed specifically for SwiftUI. For me, the main motivation for writing a component that already exists is the very slow performance under macOS (e.g. when you need to resize the screen with multiple sliders or when animating) and the severely outdated design. At the same time, I was inspired by the slider design that Apple's Photos app developed, which makes heavy use of sliders.

Requirements

  • Swift 5.5+
  • Xcode 13+
  • SwiftUI 2+
  • macOS 11+
  • iOS 14+
  • watchOS 7+

Some of the requirements could be reduced if there is a demand for them.

Installation

  1. In Xcode go to FileAdd Packages...
  2. Search for the link below and click Add Package
https://github.com/buh/CompactSlider.git
  1. Select to which target you want to add it and select Add Package

Preview

macOS

macOS.mov

iPadOS

iPad.mov

iOS

iOS.mov

watchOS

watchOS.mov

Documentation

You can find the generated DocC documentation here.

https://www.buymeacoffee.com/bukhtin

Support

You can buy me a coffee here ☕️

License

CompactSlider is available under the MIT license

Description

  • Swift Tools 5.5.0
View More Packages from this Author

Dependencies

  • None
Last updated: Mon Apr 15 2024 04:52:57 GMT-0900 (Hawaii-Aleutian Daylight Time)