Skip to content

Commit 3d7040a

Browse files
author
Xavier Schott
committed
Release version 2.1.0
1 parent 9ee06fc commit 3d7040a

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -127,31 +127,31 @@ Most of the customization can be done inside **Interface Builder**.
127127

128128
**Properties:**
129129

130-
| Property | |
131-
| ---------|--|
130+
| Property | |
131+
|:---------| ----- |
132132
| `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` |
133133
| `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"]` |
134134
| `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` |
135135
| `value` | which label is emphasized (_selected_) |
136136
| `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) |
137137

138-
| Edges & Animation | |
139-
| ---------|--|
138+
| Edges & Animation | |
139+
|:------------------| ----- |
140140
| `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 |
141141
| `insets` | **leftmost and righmost labels only**: absolute inset expressed in pixels |
142142
| `emphasisLayout` | emphasized (_selected_) labels vertical alignment ; `top`, `centerY` or `bottom`. Default is `top` (†) |
143143
| `regularLayout` | regular labels vertical alignment ; `top`, `centerY` or `bottom`. Default is `bottom` (†) |
144144

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

147-
| Emphasized labels | |
148-
| ---------|--|
147+
| Emphasized labels | |
148+
|:------------------| ----- |
149149
| `upFontName` | font |
150150
| `upFontSize` | size |
151151
| `upFontColor` | color |
152152

153-
| Regular labels | |
154-
| ---------|--|
153+
| Regular labels | |
154+
|:---------------| ----- |
155155
| `dnFontName` | font |
156156
| `dnFontSize` | size |
157157
| `dnFontColor` | color |

TGPControls.podspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Pod::Spec.new do |s|
1616
#
1717

1818
s.name = "TGPControls"
19-
s.version = "2.0.0"
19+
s.version = "2.1.0"
2020
s.summary = "Custom Awesome iOS Controls: Animated discrete slider, animated labels"
2121

2222
s.description = <<-DESC
@@ -70,7 +70,7 @@ Pod::Spec.new do |s|
7070
# Supports git, hg, bzr, svn and HTTP.
7171
#
7272

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

7575

7676
# ――― Source Code ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #

0 commit comments

Comments
 (0)