Release version 4.0.0
This commit is contained in:
parent
d4a3d49e4d
commit
93761f68a0
14
README.md
14
README.md
|
|
@ -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`.
|
||||
|
||||

|
||||
|
||||
|
|
@ -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 | |
|
||||
|:------------------| ----- |
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
@ -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/*"
|
||||
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -123,7 +123,6 @@
|
|||
TargetAttributes = {
|
||||
DC56BDC21E46DEB900AAD0D9 = {
|
||||
CreatedOnToolsVersion = 8.2.1;
|
||||
DevelopmentTeam = 55K7THBUV8;
|
||||
ProvisioningStyle = Automatic;
|
||||
};
|
||||
};
|
||||
|
|
@ -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;
|
||||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in New Issue