Skip to content

Commit a1c0960

Browse files
committed
Update readme and comments to better explain the intended use case and UX characteristics; bump patch version number
1 parent 4d2f1ea commit a1c0960

File tree

3 files changed

+5
-11
lines changed

3 files changed

+5
-11
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
[![License](https://img.shields.io/cocoapods/l/TactileSlider.svg?style=flat)](https://cocoapods.org/pods/TactileSlider)
66
[![Platform](https://img.shields.io/cocoapods/p/TactileSlider.svg?style=flat)](https://cocoapods.org/pods/TactileSlider)
77

8-
A slider control designed to be easy to grab and use because it can be dragged or tapped from anywhere along its track, similar to the sliders in Control Center and HomeKit.
8+
A slider control designed to be easy to grab and use because it can be dragged or tapped from anywhere along its track, similar to the sliders in Control Center and HomeKit. Because this type of slider graphically represents direct manipulation of a value, it should be used for live adjustment of values whose changes can be directly observed in real time (such as audio volume or the brightness of a light).
99

1010
<img src="Screenshots/in_use.gif" alt="Animation of TactileSliders in various orientations being clicked and dragged in the iOS simulator, followed by a transition from light to dark appearance" width="363" />
1111

TactileSlider.podspec

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,9 @@
88

99
Pod::Spec.new do |s|
1010
s.name = 'TactileSlider'
11-
s.version = '2.0.0'
11+
s.version = '2.0.1'
1212
s.summary = 'Easy-to-grab slider control inspired by Control Center and HomeKit.'
1313

14-
# This description is used to generate tags and improve search results.
15-
# * Think: What does it do? Why did you write it? What is the focus?
16-
# * Try to keep it short, snappy and to the point.
17-
# * Write the description between the DESC delimiters below.
18-
# * Finally, don't worry about the indent, CocoaPods strips it!
19-
2014
s.description = <<-DESC
2115
A slider control designed to be easy to grab and use because it can be dragged or tapped from anywhere along its track, similar to the sliders in Control Center and HomeKit.
2216
DESC
@@ -36,8 +30,6 @@ A slider control designed to be easy to grab and use because it can be dragged o
3630
# s.resource_bundles = {
3731
# 'TactileSlider' => ['TactileSlider/Assets/*.png']
3832
# }
39-
40-
# s.public_header_files = 'Pod/Classes/**/*.h'
33+
4134
s.frameworks = 'UIKit'
42-
# s.dependency 'AFNetworking', '~> 2.3'
4335
end

TactileSlider/Classes/TactileSlider.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,8 @@ import UIKit
7474
}
7575

7676
/// If true, will send `valueChanged` actions at every point during a movement of the slider; if false, will only send when the user lifts their finger
77+
///
78+
/// - Important: Because `TactileSlider` is designed to represent the direct manipulation of a value by the user, setting `isContinuous` to `false` could lead to suboptimal user experience – the user may expect to be able to watch the value change in real time while manipulating the slider, not only when lifting their finger. Only set `isContinuous` to `false` when absolutely necessary.
7779
@IBInspectable open var isContinuous: Bool = true
7880

7981
/// If true, a single tap anywhere in the slider will set it to that value

0 commit comments

Comments
 (0)