diff --git a/Sources/OctopusKit/Components/Input/PointerEventComponent.swift b/Sources/OctopusKit/Components/Input/PointerEventComponent.swift index 33618d72..ac286085 100644 --- a/Sources/OctopusKit/Components/Input/PointerEventComponent.swift +++ b/Sources/OctopusKit/Components/Input/PointerEventComponent.swift @@ -51,6 +51,8 @@ public final class PointerEventComponent: OctopusComponent, OctopusUpdatableComp #endif + #if canImport(UIKit) + public init?(firstTouch: UITouch? = nil, event: UIEvent? = nil, node: SKNode? = nil) @@ -66,7 +68,6 @@ public final class PointerEventComponent: OctopusComponent, OctopusUpdatableComp self.locationInNode = firstTouch.location(in: node) } - #if canImport(UIKit) #endif public func location(in anotherNode: SKNode) -> CGPoint {