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

Commit

Permalink
Fix some Xcode 9 errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Jouni Miettunen committed Jun 6, 2017
1 parent e694682 commit 163deef
Showing 1 changed file with 3 additions and 3 deletions.
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

0 comments on commit 163deef

Please sign in to comment.