Skip to content

Commit

Permalink
Release version 2.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Xavier Schott committed Feb 14, 2017
1 parent 9ee06fc commit 3d7040a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,31 +127,31 @@ Most of the customization can be done inside **Interface Builder**.

**Properties:**

| Property | |
| ---------|--|
| Property | |
|:---------| ----- |
| `ticksListener` | ties a discrete slider to its camel labels. This is your most robust method to not only ensure that the layout of both controls match exactly, but also adjust this spacing when orientation changes. A typical use may be `self.discreteSlider.ticksListener = self.camelLabels` |
| `names` | supplies a new set of labels ; supersedes the `tickCount` property, which will return the number of labels. A typical use may be `self.camelLabels.names = @[@"OFF", @"ON"]` |
| `ticksDistance` | _override_ the labels spacing entirely ; **prefer** the `ticksListener` mechanism if it is available to you. A typical use may be `self.camelLabels.ticksDistance = 15` |
| `value` | which label is emphasized (_selected_) |
| `backgroundColor` | labels become *tap-through* (**click-through**) when set to `clearColor` ; use TGPCamelLabels *on top of* other UI elements, **even native iOS objects**!:![uiswitch](https://cloud.githubusercontent.com/assets/4073988/11609813/a3b63526-9b45-11e5-9562-34fc2c9b134d.gif) |

| Edges & Animation | |
| ---------|--|
| Edges & Animation | |
|:------------------| ----- |
| `offCenter` | **leftmost and righmost labels only**: relative inset expressed as a proportion of individual label width: 0: none, +0.5: nudge in by a half width (fully fit) or -0.5: draw completely outside |
| `insets` | **leftmost and righmost labels only**: absolute inset expressed in pixels |
| `emphasisLayout` | emphasized (_selected_) labels vertical alignment ; `top`, `centerY` or `bottom`. Default is `top` (†) |
| `regularLayout` | regular labels vertical alignment ; `top`, `centerY` or `bottom`. Default is `bottom` (†) |

(†) No camel animation will occur when `emphasisLayout` = `regularLayout`, i.e. `centerY`.

| Emphasized labels | |
| ---------|--|
| Emphasized labels | |
|:------------------| ----- |
| `upFontName` | font |
| `upFontSize` | size |
| `upFontColor` | color |

| Regular labels | |
| ---------|--|
| Regular labels | |
|:---------------| ----- |
| `dnFontName` | font |
| `dnFontSize` | size |
| `dnFontColor` | color |
Expand Down
4 changes: 2 additions & 2 deletions TGPControls.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Pod::Spec.new do |s|
#

s.name = "TGPControls"
s.version = "2.0.0"
s.version = "2.1.0"
s.summary = "Custom Awesome iOS Controls: Animated discrete slider, animated labels"

s.description = <<-DESC
Expand Down Expand Up @@ -70,7 +70,7 @@ Pod::Spec.new do |s|
# Supports git, hg, bzr, svn and HTTP.
#

s.source = { :git => "https://github.com/SwiftArchitect/TGPControls.git", :tag => "v2.0.0" }
s.source = { :git => "https://github.com/SwiftArchitect/TGPControls.git", :tag => "v2.1.0" }


# ――― Source Code ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
Expand Down

0 comments on commit 3d7040a

Please sign in to comment.