diff --git a/Sources/SimpleHaptics/HapticGenerator.swift b/Sources/SimpleHaptics/HapticGenerator.swift index 95d728e..b33638d 100644 --- a/Sources/SimpleHaptics/HapticGenerator.swift +++ b/Sources/SimpleHaptics/HapticGenerator.swift @@ -1,4 +1,6 @@ +#if canImport(Combine) #if canImport(CoreHaptics) +import Combine import CoreHaptics @available(iOS 13, *) @@ -59,3 +61,4 @@ public final class SimpleHapticGenerator: ObservableObject { } #endif +#endif