Skip to content

Commit

Permalink
Exposing updateFrame as required for swift-4 (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
fpinvidio authored and chili-ios committed Oct 26, 2017
1 parent c48e3e1 commit 08ed7cc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions CHIPageControl.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@
4313A78B1E7A831E0015A568 = {
CreatedOnToolsVersion = 8.2.1;
DevelopmentTeam = 4J5NY3YD66;
LastSwiftMigration = 0820;
LastSwiftMigration = 0900;
ProvisioningStyle = Automatic;
};
};
Expand Down Expand Up @@ -335,7 +335,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 @@ -355,7 +356,8 @@
PRODUCT_BUNDLE_IDENTIFIER = lv.chi.CHIPageControl;
PRODUCT_NAME = "$(TARGET_NAME)";
SKIP_INSTALL = YES;
SWIFT_VERSION = 3.0;
SWIFT_SWIFT3_OBJC_INFERENCE = On;
SWIFT_VERSION = 4.0;
};
name = Release;
};
Expand Down
2 changes: 1 addition & 1 deletion CHIPageControl/Core/CHIBasePageControl.swift
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ import UIKit
self.displayLink?.add(to: .current, forMode: .commonModes)
}

internal func updateFrame() {
@objc internal func updateFrame() {
self.animate()
}

Expand Down

0 comments on commit 08ed7cc

Please sign in to comment.