Skip to content

Commit

Permalink
Update readme and comments to better explain the intended use case an…
Browse files Browse the repository at this point in the history
…d UX characteristics; bump patch version number
  • Loading branch information
daprice committed Jul 22, 2020
1 parent 4d2f1ea commit a1c0960
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 11 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
[![License](https://img.shields.io/cocoapods/l/TactileSlider.svg?style=flat)](https://cocoapods.org/pods/TactileSlider)
[![Platform](https://img.shields.io/cocoapods/p/TactileSlider.svg?style=flat)](https://cocoapods.org/pods/TactileSlider)

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.
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).

<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" />

Expand Down
12 changes: 2 additions & 10 deletions TactileSlider.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,9 @@

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

# This description is used to generate tags and improve search results.
# * Think: What does it do? Why did you write it? What is the focus?
# * Try to keep it short, snappy and to the point.
# * Write the description between the DESC delimiters below.
# * Finally, don't worry about the indent, CocoaPods strips it!

s.description = <<-DESC
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.
DESC
Expand All @@ -36,8 +30,6 @@ A slider control designed to be easy to grab and use because it can be dragged o
# s.resource_bundles = {
# 'TactileSlider' => ['TactileSlider/Assets/*.png']
# }

# s.public_header_files = 'Pod/Classes/**/*.h'

s.frameworks = 'UIKit'
# s.dependency 'AFNetworking', '~> 2.3'
end
2 changes: 2 additions & 0 deletions TactileSlider/Classes/TactileSlider.swift
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ import UIKit
}

/// 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
///
/// - 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.
@IBInspectable open var isContinuous: Bool = true

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

0 comments on commit a1c0960

Please sign in to comment.