Skip to content
This repository has been archived by the owner on May 23, 2022. It is now read-only.

Commit

Permalink
updated to Swift 4.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Willy Breitenbach committed Sep 27, 2018
1 parent 1afdcd7 commit 16a4458
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .swift-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4.0
4.2
9 changes: 4 additions & 5 deletions Example/Example.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,6 @@
TargetAttributes = {
FF828F141A74E52500DC12EF = {
CreatedOnToolsVersion = 6.1.1;
DevelopmentTeam = 8Y439RUF7P;
LastSwiftMigration = 0900;
};
FF828F291A74E52500DC12EF = {
Expand Down Expand Up @@ -409,15 +408,15 @@
ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
CODE_SIGN_IDENTITY = "iPhone Developer";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
DEVELOPMENT_TEAM = 8Y439RUF7P;
DEVELOPMENT_TEAM = "";
INFOPLIST_FILE = Example/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 8.1;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = "com.molabo.$(PRODUCT_NAME:rfc1034identifier)";
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE = "";
SWIFT_SWIFT3_OBJC_INFERENCE = Default;
SWIFT_VERSION = 4.0;
SWIFT_VERSION = 4.2;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Debug;
Expand All @@ -429,15 +428,15 @@
ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
CODE_SIGN_IDENTITY = "iPhone Developer";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
DEVELOPMENT_TEAM = 8Y439RUF7P;
DEVELOPMENT_TEAM = "";
INFOPLIST_FILE = Example/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 8.1;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = "com.molabo.$(PRODUCT_NAME:rfc1034identifier)";
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE = "";
SWIFT_SWIFT3_OBJC_INFERENCE = Default;
SWIFT_VERSION = 4.0;
SWIFT_VERSION = 4.2;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Release;
Expand Down
2 changes: 1 addition & 1 deletion TouchVisualizer/TouchView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ final public class TouchView: UIImageView {

RunLoop
.main
.add(timer!, forMode: RunLoopMode.commonModes)
.add(timer!, forMode: RunLoop.Mode.common)

if _config.showsTimer {
timerLabel.alpha = 1.0
Expand Down
6 changes: 3 additions & 3 deletions TouchVisualizer/Visualizer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ final public class Visualizer:NSObject {
super.init()
NotificationCenter
.default
.addObserver(self, selector: #selector(Visualizer.orientationDidChangeNotification(_:)), name: NSNotification.Name.UIDeviceOrientationDidChange, object: nil)
.addObserver(self, selector: #selector(Visualizer.orientationDidChangeNotification(_:)), name: UIDevice.orientationDidChangeNotification, object: nil)

NotificationCenter
.default
.addObserver(self, selector: #selector(Visualizer.applicationDidBecomeActiveNotification(_:)), name: NSNotification.Name.UIApplicationDidBecomeActive, object: nil)
.addObserver(self, selector: #selector(Visualizer.applicationDidBecomeActiveNotification(_:)), name: UIApplication.didBecomeActiveNotification, object: nil)

UIDevice
.current
Expand Down Expand Up @@ -132,7 +132,7 @@ extension Visualizer {
return nil
}

open func handleEvent(_ event: UIEvent) {
public func handleEvent(_ event: UIEvent) {
if event.type != .touches {
return
}
Expand Down

0 comments on commit 16a4458

Please sign in to comment.