Skip to content

Commit 93761f6

Browse files
author
Xavier Schott
committed
Release version 4.0.0
1 parent d4a3d49 commit 93761f6

5 files changed

Lines changed: 13 additions & 14 deletions

File tree

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -104,26 +104,26 @@ self.stepper.value = Double(sender.value)
104104
| Tick | |
105105
|:-----| ----- |
106106
| `tickSize` | absolute dimension |
107-
| `tickImage` | Resource name as string, fits in `tickSize` |
107+
| `tickImage` | a `UIImage`, fits in `tickSize` (†) |
108108
| `tickCount` | discrete steps, must be 2 or greater |
109109
| `ticksDistance` | horizontal spacing _(calculated)_ |
110110

111111
| Track | |
112112
|:------| ----- |
113113
| `trackThickness` | height |
114-
| `trackImage` | resource name as string, ignores `trackThickness` |
114+
| `trackImage` | a `UIImage`, ignores `trackThickness` (†) |
115115
| `minimumTrackTintColor` | track lower side |
116116
| `maximumTrackTintColor` | track higher side |
117117

118118
| Thumb | |
119119
|:------| ----- |
120120
| `thumbSize` | absolute size |
121-
| `thumbImage` | dictates `thumbSize` |
121+
| `thumbImage` | a`UIImage`, dictates `thumbSize` (†) |
122122
| `thumbTintColor` | background |
123123
| `thumbShadowRadius` | breaking the _flat design concept_ |
124124
| `thumbShadowOffset` | applied to `thumbShadowRadius`, may affect control bounds |
125125

126-
126+
(†) Introduced in version 4.0.0. Former versions used a resource name as a `string`.
127127

128128
![image](https://cloud.githubusercontent.com/assets/4073988/5910789/e102af28-a572-11e4-9169-b18555e20eab.png)
129129

@@ -154,10 +154,10 @@ Most of the customization can be done inside **Interface Builder**.
154154
|:------------------| ----- |
155155
| `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 |
156156
| `insets` | **leftmost and righmost labels only**: absolute inset expressed in pixels |
157-
| `emphasisLayout` | emphasized (_selected_) labels vertical alignment ; `.top`, `.centerY` or `.bottom`. Default is `.top` () |
158-
| `regularLayout` | regular labels vertical alignment ; `.top`, `.centerY` or `.bottom`. Default is `.bottom` () |
157+
| `emphasisLayout` | emphasized (_selected_) labels vertical alignment ; `.top`, `.centerY` or `.bottom`. Default is `.top` () |
158+
| `regularLayout` | regular labels vertical alignment ; `.top`, `.centerY` or `.bottom`. Default is `.bottom` () |
159159

160-
() No camel animation will occur when `emphasisLayout` = `regularLayout`, i.e. `.centerY`.
160+
() No camel animation will occur when `emphasisLayout` = `regularLayout`, i.e. `.centerY`.
161161

162162
| Emphasized labels | |
163163
|:------------------| ----- |

TGPControls.podspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Pod::Spec.new do |spec|
22

33
# ――― Spec Metadata ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
44
spec.name = "TGPControls"
5-
spec.version = "3.0.0"
5+
spec.version = "4.0.0"
66
spec.summary = "Custom animated iOS controls: Animated discrete slider, animated labels"
77

88
spec.description = <<-DESC
@@ -25,7 +25,7 @@ Pod::Spec.new do |spec|
2525
spec.requires_arc = true
2626

2727
# ――― Source Location ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
28-
spec.source = { :git => "https://github.com/SwiftArchitect/TGPControls.git", :tag => "v3.0.0" }
28+
spec.source = { :git => "https://github.com/SwiftArchitect/TGPControls.git", :tag => "v4.0.0" }
2929
spec.source_files = "TGPControls/**/*.{swift}"
3030
spec.exclude_files = "TGPControlsDemo/*"
3131

TGPControls/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<key>CFBundlePackageType</key>
1616
<string>FMWK</string>
1717
<key>CFBundleShortVersionString</key>
18-
<string>3.0.1</string>
18+
<string>4.0.0</string>
1919
<key>CFBundleVersion</key>
2020
<string>$(CURRENT_PROJECT_VERSION)</string>
2121
<key>NSPrincipalClass</key>

TGPControlsDemo/TGPControlsDemo.xcodeproj/project.pbxproj

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,6 @@
123123
TargetAttributes = {
124124
DC56BDC21E46DEB900AAD0D9 = {
125125
CreatedOnToolsVersion = 8.2.1;
126-
DevelopmentTeam = 55K7THBUV8;
127126
ProvisioningStyle = Automatic;
128127
};
129128
};
@@ -340,7 +339,7 @@
340339
buildSettings = {
341340
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = "$(inherited)";
342341
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
343-
DEVELOPMENT_TEAM = 55K7THBUV8;
342+
DEVELOPMENT_TEAM = "";
344343
INFOPLIST_FILE = TGPControlsDemo/Info.plist;
345344
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
346345
PRODUCT_BUNDLE_IDENTIFIER = com.swiftarchitect.TGPControlsDemo;
@@ -355,7 +354,7 @@
355354
buildSettings = {
356355
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = "$(inherited)";
357356
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
358-
DEVELOPMENT_TEAM = 55K7THBUV8;
357+
DEVELOPMENT_TEAM = "";
359358
INFOPLIST_FILE = TGPControlsDemo/Info.plist;
360359
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
361360
PRODUCT_BUNDLE_IDENTIFIER = com.swiftarchitect.TGPControlsDemo;

TGPControlsDemo/TGPControlsDemo/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<key>CFBundlePackageType</key>
1616
<string>APPL</string>
1717
<key>CFBundleShortVersionString</key>
18-
<string>1.0</string>
18+
<string>4.0.0</string>
1919
<key>CFBundleVersion</key>
2020
<string>1</string>
2121
<key>LSRequiresIPhoneOS</key>

0 commit comments

Comments
 (0)