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:
parent
428eb67617
commit
0f7b63457c
@ -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
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user