We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent afea94a commit 1bd5a7bCopy full SHA for 1bd5a7b
FeatureFlags/Classes/UI/Feature Flags/Shared/UIControl.swift
@@ -7,6 +7,8 @@
7
8
import Foundation
9
import ObjectiveC
10
+#if canImport(UIKit)
11
+import UIKit
12
13
public extension NSObject {
14
func associatedObject<T>(key: UnsafeRawPointer, makeDefault: () -> T) -> T {
@@ -43,3 +45,4 @@ public extension UIControl {
43
45
}
44
46
47
48
+#endif
Package.swift
@@ -10,7 +10,8 @@ let package = Package(
products: [
.library(
name: "FeatureFlags",
- targets: ["FeatureFlags"])
+ targets: ["FeatureFlags"]
+ )
15
],
16
targets: [
17
.target(
0 commit comments