You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Through the `TGPControlsTicksProtocol`, the camelLabels listen to _value_ and _size_ changes. You may want to adopt this protocol to handle changes, or use the traditional `UIControl` notifications:
|`thumbShadowRadius`| breaking the _flat design concept_|
139
146
|`thumbShadowOffset`| applied to `thumbShadowRadius`, may affect control bounds |
140
147
@@ -159,8 +166,9 @@ Most of the customization can be done inside **Interface Builder**.
159
166
160
167
| Property ||
161
168
|:---------| ----- |
162
-
|`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 `discreteSlider.ticksListener = camelLabels`|
169
+
|`tickCount`|**design only** (_preferrably not to be used_): the number of ticks is driven by the number of elements in the `names` array|
163
170
|`names`| supplies a new set of labels ; supersedes the `tickCount` property, which will return the number of labels. A typical use may be `camelLabels.names = ["OFF", "ON"]`|
171
+
|`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 `discreteSlider.ticksListener = camelLabels`|
164
172
|`ticksDistance`|_override_ the labels spacing entirely ; **prefer** the `ticksListener` mechanism if it is available to you. A typical use may be `camelLabels.ticksDistance = 15`|
165
173
|`value`| which label is emphasized (_selected_) |
166
174
|`backgroundColor`| labels become *tap-through* (**click-through**) when set to `UIColor.clear` ; use TGPCamelLabels *on top of* other UI elements, **even native iOS objects**!(*) |
@@ -170,6 +178,7 @@ Most of the customization can be done inside **Interface Builder**.
170
178
171
179
| Edges & Animation ||
172
180
|:------------------| ----- |
181
+
|`numberOfLiness`| Support for multiple lines labels |
173
182
|`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 |
174
183
|`insets`|**leftmost and righmost labels only**: absolute inset expressed in pixels |
175
184
|`emphasisLayout`| emphasized (_selected_) labels vertical alignment ; `.top`, `.centerY` or `.bottom`. Default is `.top` (‡) |
0 commit comments