diff --git a/PostHog/Autocapture/UIView+PostHogLabel.swift b/PostHog/Autocapture/UIView+PostHogLabel.swift index c06d099e0..3f47d5629 100644 --- a/PostHog/Autocapture/UIView+PostHogLabel.swift +++ b/PostHog/Autocapture/UIView+PostHogLabel.swift @@ -5,7 +5,7 @@ // Created by Yiannis Josephides on 04/12/2024. // -#if canImport(UIKit) +#if os(iOS) || targetEnvironment(macCatalyst) import UIKit public extension UIView {