Skip to content

Commit

Permalink
Release version 4.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Xavier Schott committed Apr 15, 2017
1 parent d4a3d49 commit 93761f6
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 14 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,26 +104,26 @@ self.stepper.value = Double(sender.value)
| Tick | |
|:-----| ----- |
| `tickSize` | absolute dimension |
| `tickImage` | Resource name as string, fits in `tickSize` |
| `tickImage` | a `UIImage`, fits in `tickSize` (†) |
| `tickCount` | discrete steps, must be 2 or greater |
| `ticksDistance` | horizontal spacing _(calculated)_ |

| Track | |
|:------| ----- |
| `trackThickness` | height |
| `trackImage` | resource name as string, ignores `trackThickness` |
| `trackImage` | a `UIImage`, ignores `trackThickness` (†) |
| `minimumTrackTintColor` | track lower side |
| `maximumTrackTintColor` | track higher side |

| Thumb | |
|:------| ----- |
| `thumbSize` | absolute size |
| `thumbImage` | dictates `thumbSize` |
| `thumbImage` | a`UIImage`, dictates `thumbSize` (†) |
| `thumbTintColor` | background |
| `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`.

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

Expand Down Expand Up @@ -154,10 +154,10 @@ Most of the customization can be done inside **Interface Builder**.
|:------------------| ----- |
| `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` () |
| `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`.
() No camel animation will occur when `emphasisLayout` = `regularLayout`, i.e. `.centerY`.

| Emphasized labels | |
|:------------------| ----- |
Expand Down
4 changes: 2 additions & 2 deletions TGPControls.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Pod::Spec.new do |spec|

# ――― Spec Metadata ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
spec.name = "TGPControls"
spec.version = "3.0.0"
spec.version = "4.0.0"
spec.summary = "Custom animated iOS controls: Animated discrete slider, animated labels"

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

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

Expand Down
2 changes: 1 addition & 1 deletion TGPControls/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>3.0.1</string>
<string>4.0.0</string>
<key>CFBundleVersion</key>
<string>$(CURRENT_PROJECT_VERSION)</string>
<key>NSPrincipalClass</key>
Expand Down
5 changes: 2 additions & 3 deletions TGPControlsDemo/TGPControlsDemo.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,6 @@
TargetAttributes = {
DC56BDC21E46DEB900AAD0D9 = {
CreatedOnToolsVersion = 8.2.1;
DevelopmentTeam = 55K7THBUV8;
ProvisioningStyle = Automatic;
};
};
Expand Down Expand Up @@ -340,7 +339,7 @@
buildSettings = {
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = "$(inherited)";
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
DEVELOPMENT_TEAM = 55K7THBUV8;
DEVELOPMENT_TEAM = "";
INFOPLIST_FILE = TGPControlsDemo/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = com.swiftarchitect.TGPControlsDemo;
Expand All @@ -355,7 +354,7 @@
buildSettings = {
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = "$(inherited)";
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
DEVELOPMENT_TEAM = 55K7THBUV8;
DEVELOPMENT_TEAM = "";
INFOPLIST_FILE = TGPControlsDemo/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = com.swiftarchitect.TGPControlsDemo;
Expand Down
2 changes: 1 addition & 1 deletion TGPControlsDemo/TGPControlsDemo/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<string>4.0.0</string>
<key>CFBundleVersion</key>
<string>1</string>
<key>LSRequiresIPhoneOS</key>
Expand Down

0 comments on commit 93761f6

Please sign in to comment.