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

Commit

Permalink
Merge pull request #32 from jomnius/feature/Fix_some_Xcode_9_errors
Browse files Browse the repository at this point in the history
Fix some Xcode 9 errors
  • Loading branch information
DagAgren authored Jun 15, 2017
2 parents 723550a + 163deef commit cb052a3
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 cb052a3

Please sign in to comment.