1
1
mirror of https://github.com/exyte/Macaw.git synced 2024-09-11 05:05:23 +03:00

Fix lint warnings

This commit is contained in:
Yuri Strot 2018-11-19 17:15:02 +07:00
parent 428eb67617
commit 0f7b63457c
2 changed files with 8 additions and 2 deletions

View File

@ -148,7 +148,7 @@ class AnimationCache {
func isAnimating(_ node: Node) -> Bool {
let renderer = layerCache.keys.filter { $0.node() === node }.first
let renderer = layerCache.keys.first { $0.node() === node }
if let renderer = renderer, let _ = layerCache[renderer] {
return true
}

View File

@ -6,6 +6,12 @@
//
//
#if os(iOS)
import UIKit
#elseif os(OSX)
import AppKit
#endif
public enum Relativity {
case parent
case scene
@ -26,7 +32,7 @@ class NodePath {
public struct TouchPoint {
public let id: Int
@available(*, deprecated) public var location: Point // absolute location
{ get { return absoluteLocation } }
{ return absoluteLocation }
private let absoluteLocation: Point
private let relativeLocation: Point // location inside the node