Skip to content

Commit 08ed7cc

Browse files
fpinvidiochili-ios
authored andcommitted
Exposing updateFrame as required for swift-4 (#33)
1 parent c48e3e1 commit 08ed7cc

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

CHIPageControl.xcodeproj/project.pbxproj

+5-3
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@
165165
4313A78B1E7A831E0015A568 = {
166166
CreatedOnToolsVersion = 8.2.1;
167167
DevelopmentTeam = 4J5NY3YD66;
168-
LastSwiftMigration = 0820;
168+
LastSwiftMigration = 0900;
169169
ProvisioningStyle = Automatic;
170170
};
171171
};
@@ -335,7 +335,8 @@
335335
PRODUCT_NAME = "$(TARGET_NAME)";
336336
SKIP_INSTALL = YES;
337337
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
338-
SWIFT_VERSION = 3.0;
338+
SWIFT_SWIFT3_OBJC_INFERENCE = On;
339+
SWIFT_VERSION = 4.0;
339340
};
340341
name = Debug;
341342
};
@@ -355,7 +356,8 @@
355356
PRODUCT_BUNDLE_IDENTIFIER = lv.chi.CHIPageControl;
356357
PRODUCT_NAME = "$(TARGET_NAME)";
357358
SKIP_INSTALL = YES;
358-
SWIFT_VERSION = 3.0;
359+
SWIFT_SWIFT3_OBJC_INFERENCE = On;
360+
SWIFT_VERSION = 4.0;
359361
};
360362
name = Release;
361363
};

CHIPageControl/Core/CHIBasePageControl.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ import UIKit
109109
self.displayLink?.add(to: .current, forMode: .commonModes)
110110
}
111111

112-
internal func updateFrame() {
112+
@objc internal func updateFrame() {
113113
self.animate()
114114
}
115115

0 commit comments

Comments
 (0)