From 163deefdb6092d2934bd0ef1dcf2b04c1bfb0bdf Mon Sep 17 00:00:00 2001 From: Jouni Miettunen Date: Tue, 6 Jun 2017 17:29:50 +0300 Subject: [PATCH] Fix some Xcode 9 errors --- SwiftMonkeyPaws/MonkeyPaws.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/SwiftMonkeyPaws/MonkeyPaws.swift b/SwiftMonkeyPaws/MonkeyPaws.swift index 49641fb..df941b3 100644 --- a/SwiftMonkeyPaws/MonkeyPaws.swift +++ b/SwiftMonkeyPaws/MonkeyPaws.swift @@ -228,7 +228,7 @@ private class Gesture { let pathLayer = self.pathLayer ?? { () -> CAShapeLayer in let newLayer = CAShapeLayer() - newLayer.strokeColor = startLayer.strokeColor + newLayer.strokeColor = self.startLayer.strokeColor newLayer.fillColor = nil let maskPath = CGMutablePath() @@ -238,11 +238,11 @@ private class Gesture { let maskLayer = CAShapeLayer() maskLayer.path = maskPath maskLayer.fillRule = kCAFillRuleEvenOdd - maskLayer.position = startLayer.position + maskLayer.position = self.startLayer.position newLayer.mask = maskLayer self.pathLayer = newLayer - containerLayer.addSublayer(newLayer) + self.containerLayer.addSublayer(newLayer) return newLayer }()