Skip to content

Commit

Permalink
update readme and bunp version to 1.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
yonat committed Jul 1, 2018
1 parent c004369 commit e9ab610
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Example/Pods/
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [1.5.0] - 2018-07-01

### Added
- send `.touchUpInside` event when user finished dragging. (thanks benjaminfischer!)

## [1.4.3] - 2018-06-25

### Fixed
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IDEDidComputeMac32BitWarning</key>
<true/>
</dict>
</plist>
2 changes: 1 addition & 1 deletion MultiSlider.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Pod::Spec.new do |s|

s.name = "MultiSlider"
s.version = "1.4.3"
s.version = "1.5.0"
s.summary = "UISlider clone with multiple thumbs and values, optional snap intervals, optional value labels."

s.homepage = "https://github.com/yonat/MultiSlider"
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ slider.snapStepSize = 0.5 // default is 0.0, i.e. don't snap

slider.value = [1, 4.5, 5]

slider.addTarget(self, action: #selector(sliderChanged(_:)), forControlEvents: .ValueChanged)
slider.addTarget(self, action: #selector(sliderChanged(_:)), forControlEvents: .valueChanged) // continuous changes
slider.addTarget(self, action: #selector(sliderChanged(_:)), forControlEvents: . touchUpInside) // sent when drag ends
```

## Getting Multiple Thumb Values
Expand All @@ -36,7 +37,7 @@ func sliderChanged(slider: MultiSlider) {
## Changing Appearance

```swift
slider.thumbImage = UIImage(named: "baloon")
slider.thumbImage = UIImage(named: "balloon")
slider.minimumImage = UIImage(named: "clown")
slider.maximumImage = UIImage(named: "cloud")
slider.tintColor = .cyan
Expand Down Expand Up @@ -83,7 +84,6 @@ Copy `Sources/MultiSlider.swift` and [`MiniLayout.swift`](https://github.com/yon

## TODO

- [ ] `isContinuous=false` for clients that only want a single `.valueChanged` event on drag end.
- [ ] Fix IB presentation. (dlopen error "image not found", thumbs should be vertically centered and evenly distributed.)

## Meta
Expand Down

0 comments on commit e9ab610

Please sign in to comment.