This commit is contained in:
Xavier Schott 2018-06-06 16:26:24 -07:00 committed by GitHub
parent b51ea58306
commit 4df95aee04
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 4 deletions

View File

@ -124,7 +124,8 @@ self.stepper.value = Double(sender.value)
| `tickStyle` | See style property |
| `tickSize` | absolute dimension |
| `tickCount` | discrete steps, must be 2 or greater |
| `tickTintColor` | takes precedence over the control `tintColor` |
| `minimumTickTintColor` | lower side ticks ; takes precedence over `minimumTrackTintColor` (†1) |
| `maximumTickTintColor` | higher side ticks ; takes precedence over `maximumTrackTintColor` (†1) |
| `tickImage` | a `UIImage`, fits in `tickSize` (†) |
| `ticksDistance` | horizontal spacing _(calculated)_ |
@ -132,7 +133,7 @@ self.stepper.value = Double(sender.value)
|:------| ----- |
| `trackStyle` | See style property |
| `trackThickness` | height |
| `trackImage` | a `UIImage`, ignores `trackThickness` (†) |
| `trackImage` | a `UIImage`, ignores `trackThickness` (†2) |
| `minimumTrackTintColor` | track lower side |
| `maximumTrackTintColor` | track higher side |
@ -145,7 +146,8 @@ self.stepper.value = Double(sender.value)
| `thumbShadowRadius` | breaking the _flat design concept_ |
| `thumbShadowOffset` | applied to `thumbShadowRadius`, may affect control bounds |
(†) Introduced in version 4.0.0. Former versions used a resource name as a `string`.
(†1) Introduced in 5.1.0.
(†2) Introduced in 4.0.0. Former versions used a resource name as a `string`.
![image](https://cloud.githubusercontent.com/assets/4073988/5910789/e102af28-a572-11e4-9169-b18555e20eab.png)
@ -200,7 +202,7 @@ Most of the customization can be done inside **Interface Builder**.
---
### Code example (Swift 3)
### Code example (Swift)
See **TGPControlsDemo** project: `TGPControlsDemo` (Modern Swift syntax + IBInspectable)