From a1c09605dc93ca0929b12b85177eae9064ed28fb Mon Sep 17 00:00:00 2001 From: Dale Price Date: Tue, 21 Jul 2020 19:38:37 -0500 Subject: [PATCH] Update readme and comments to better explain the intended use case and UX characteristics; bump patch version number --- README.md | 2 +- TactileSlider.podspec | 12 ++---------- TactileSlider/Classes/TactileSlider.swift | 2 ++ 3 files changed, 5 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 6cb3edf..87724f4 100644 --- a/README.md +++ b/README.md @@ -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). Animation of TactileSliders in various orientations being clicked and dragged in the iOS simulator, followed by a transition from light to dark appearance diff --git a/TactileSlider.podspec b/TactileSlider.podspec index 470925c..9105d53 100644 --- a/TactileSlider.podspec +++ b/TactileSlider.podspec @@ -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 @@ -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 diff --git a/TactileSlider/Classes/TactileSlider.swift b/TactileSlider/Classes/TactileSlider.swift index 6c1524f..42e85bc 100644 --- a/TactileSlider/Classes/TactileSlider.swift +++ b/TactileSlider/Classes/TactileSlider.swift @@ -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