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

Fix some Xcode 9 errors #32

Merged
merged 1 commit into from
Jun 15, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions SwiftMonkeyPaws/MonkeyPaws.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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
}()
Expand Down