Fix for the Intents overlay on watchOS (#7493)
diff --git a/stdlib/public/SDK/Intents/INRequestRideIntent.swift b/stdlib/public/SDK/Intents/INRequestRideIntent.swift
index f3ef9ba..7819d03 100644
--- a/stdlib/public/SDK/Intents/INRequestRideIntent.swift
+++ b/stdlib/public/SDK/Intents/INRequestRideIntent.swift
@@ -33,11 +33,15 @@
paymentMethod: paymentMethod,
scheduledPickupTime: scheduledPickupTime)
} else {
+#if os(iOS)
self.init(__pickupLocation: pickupLocation,
dropOffLocation: dropOffLocation,
rideOptionName: rideOptionName,
partySize: partySize.map { NSNumber(value: $0) },
paymentMethod: paymentMethod)
+#else
+ fatalError("The initializer is not available")
+#endif
}
}