Skip to content

Commit

Permalink
Merge pull request #7 from alexsteinerde/master
Browse files Browse the repository at this point in the history
Added Swift 4 Support
  • Loading branch information
ykyouhei authored Sep 25, 2017
2 parents e6ac704 + 73d926b commit f76e2a9
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .swift-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.0
4.0
2 changes: 1 addition & 1 deletion KYNavigationProgress.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "KYNavigationProgress"
s.version = "2.0.1"
s.version = "2.0.2"
s.summary = "KYNavigationProgress is simple extension of UINavigationController to display progress on the UINavigationBar."
s.homepage = "https://github.com/ykyouhei/KYNavigationProgress"
s.license = "MIT"
Expand Down
13 changes: 10 additions & 3 deletions KYNavigationProgress.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -182,11 +182,12 @@
TargetAttributes = {
C2A91C121C32782F006D1CAE = {
CreatedOnToolsVersion = 7.2;
LastSwiftMigration = 0800;
LastSwiftMigration = 0900;
ProvisioningStyle = Automatic;
};
C2A91C301C327872006D1CAE = {
CreatedOnToolsVersion = 7.2;
LastSwiftMigration = 0900;
};
};
};
Expand Down Expand Up @@ -392,7 +393,8 @@
PRODUCT_NAME = "$(TARGET_NAME)";
SKIP_INSTALL = YES;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_VERSION = 3.0;
SWIFT_SWIFT3_OBJC_INFERENCE = On;
SWIFT_VERSION = 4.0;
};
name = Debug;
};
Expand All @@ -413,7 +415,8 @@
PRODUCT_BUNDLE_IDENTIFIER = "com.kyo--hei.KYNavigationProgress";
PRODUCT_NAME = "$(TARGET_NAME)";
SKIP_INSTALL = YES;
SWIFT_VERSION = 3.0;
SWIFT_SWIFT3_OBJC_INFERENCE = On;
SWIFT_VERSION = 4.0;
};
name = Release;
};
Expand All @@ -428,6 +431,8 @@
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = "com.kyo--hei.Sample";
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_SWIFT3_OBJC_INFERENCE = On;
SWIFT_VERSION = 4.0;
};
name = Debug;
};
Expand All @@ -442,6 +447,8 @@
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = "com.kyo--hei.Sample";
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_SWIFT3_OBJC_INFERENCE = On;
SWIFT_VERSION = 4.0;
};
name = Release;
};
Expand Down
2 changes: 1 addition & 1 deletion KYNavigationProgress/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>2.0.1</string>
<string>2.0.2</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
Expand Down
4 changes: 2 additions & 2 deletions KYNavigationProgress/ProgressView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ public final class ProgressView: UIView {

internal let bar = UIView()

public dynamic var progressTintColor: UIColor? = UIColor(red: 0, green: 122/255, blue: 1, alpha: 1) {
@objc public dynamic var progressTintColor: UIColor? = UIColor(red: 0, green: 122/255, blue: 1, alpha: 1) {
didSet {
bar.backgroundColor = progressTintColor
}
}

public dynamic var trackTintColor: UIColor? = .clear {
@objc public dynamic var trackTintColor: UIColor? = .clear {
didSet {
backgroundColor = trackTintColor
}
Expand Down

0 comments on commit f76e2a9

Please sign in to comment.