Skip to content

CoreHaptics iOS xcode26.0 b1

Alex Soto edited this page Jun 9, 2025 · 1 revision

#CoreHaptics.framework

diff -ruN /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreHaptics.framework/Headers/CHHapticEngine.h /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreHaptics.framework/Headers/CHHapticEngine.h
--- /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreHaptics.framework/Headers/CHHapticEngine.h	2025-04-19 01:05:13
+++ /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreHaptics.framework/Headers/CHHapticEngine.h	2025-05-24 01:00:17
@@ -31,6 +31,7 @@
 @class CHHapticPattern;
 @class AVAudioSession;
 @protocol CHHapticDeviceCapability;
+@class CASpatialAudioExperience;
 
 /*!	@typedef CHHapticCompletionHandler
 	@abstract
@@ -371,6 +372,17 @@
  */
 - (BOOL)playPatternFromData:(NSData *)data
 					  error:(NSError **)outError;
+
+/*! @property intendedSpatialExperience
+    @abstract
+        The CHHapticEngine's intended spatial experience.
+    @discussion
+        Only useful for engines that have audio output. The default value of
+        CAAutomaticSpatialAudio means the engine uses its AVAudioSession's
+        intended spatial experience. See CASpatialAudioExperience for more
+        details.
+ */
+@property (nonnull, copy) CASpatialAudioExperience *intendedSpatialExperience API_AVAILABLE(visionos(26.0)) API_UNAVAILABLE(ios, watchos, tvos, macos) NS_REFINED_FOR_SWIFT;
 
 @end
 
diff -ruN /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreHaptics.framework/Headers/CHHapticPatternPlayer.h /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreHaptics.framework/Headers/CHHapticPatternPlayer.h
--- /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreHaptics.framework/Headers/CHHapticPatternPlayer.h	2025-04-19 01:05:13
+++ /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreHaptics.framework/Headers/CHHapticPatternPlayer.h	2025-05-24 04:54:41
@@ -155,8 +155,8 @@
 		at any point before or during pattern playback.
     @discussion
         This rate factor scales the relative times of all events and parameters as they are played, as well as the
-        durations of Continuous events.  It does not affect the pitches of the events.  Any value greater than
-        0.0 is valid; all others are ignored.
+        durations of Continuous events and the `loopEnd` time.  It does not affect the pitches of the events.
+        Any value greater than 0.0 is valid; all others are ignored.
  */
 @property (readwrite) float playbackRate;
 
Clone this wiki locally