Repository navigation
UIKit MacCatalyst xcode27.3 b2
Alex Soto edited this page Nov 24, 2026
·
2 revisions
#UIKit.framework
diff -ruN /Applications/Xcode_27.3.0-beta1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/iOSSupport/System/Library/Frameworks/UIKit.framework/Headers/UIHinge.h /Applications/Xcode_27.3.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/iOSSupport/System/Library/Frameworks/UIKit.framework/Headers/UIHinge.h
--- /Applications/Xcode_27.3.0-beta1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/iOSSupport/System/Library/Frameworks/UIKit.framework/Headers/UIHinge.h 2026-11-04 03:32:11
+++ /Applications/Xcode_27.3.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/iOSSupport/System/Library/Frameworks/UIKit.framework/Headers/UIHinge.h 2026-11-23 18:18:38
@@ -52,6 +52,12 @@
/// }
///
/// In the example above, the current angle and status of the hinge are displayed as the user interacts with the hinge.
+///
+/// > Important: Use hinge updates when your app treats the hinge as input, such as driving an animation that responds to granular hinge angle changes,
+/// > controlling a game, or showing the current angle. Hinge updates arrive while the hinge is moving, at a pace the system sets.
+/// >
+/// > Don't use hinge updates for layout. To adapt your layout to the fold, use ``UIArrangementViewController`` or ``UIView/ReservedRegion`` instead. Reserved
+/// > region updates arrive during a layout pass, which might be animated.
UIKIT_EXTERN NS_SWIFT_UI_ACTOR API_AVAILABLE(ios(27.1), tvos(27.1), visionos(27.1)) API_UNAVAILABLE(watchos)
@interface UIHinge : NSObject <NSCopying>
diff -ruN /Applications/Xcode_27.3.0-beta1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/iOSSupport/System/Library/Frameworks/UIKit.framework/Headers/UIHingeInteraction.h /Applications/Xcode_27.3.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/iOSSupport/System/Library/Frameworks/UIKit.framework/Headers/UIHingeInteraction.h
--- /Applications/Xcode_27.3.0-beta1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/iOSSupport/System/Library/Frameworks/UIKit.framework/Headers/UIHingeInteraction.h 2026-11-04 03:32:11
+++ /Applications/Xcode_27.3.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/iOSSupport/System/Library/Frameworks/UIKit.framework/Headers/UIHingeInteraction.h 2026-11-23 18:18:38
@@ -48,6 +48,12 @@
/// }
///
/// In the example above, the current angle and status of the hinge are displayed as the user interacts with the hinge.
+///
+/// > Important: Use hinge updates when your app treats the hinge as input, such as driving an animation that responds to granular hinge angle changes,
+/// > controlling a game, or showing the current angle. Hinge updates arrive while the hinge is moving, at a pace the system sets.
+/// >
+/// > Don't use hinge updates for layout. To adapt your layout to the fold, use ``UIArrangementViewController`` or ``UIView/ReservedRegion`` instead. Reserved
+/// > region updates arrive during a layout pass, which might be animated.
UIKIT_EXTERN NS_SWIFT_UI_ACTOR API_AVAILABLE(ios(27.1), tvos(27.1), visionos(27.1)) API_UNAVAILABLE(watchos)
@interface UIHingeInteraction : NSObject <UIInteraction>
@@ -64,8 +70,9 @@
/// Whether the interaction is enabled.
///
-/// While disabled, the interaction's handler is not called for hinge updates, and any updates that occur are not queued. When re-enabled, the handler is called with
-/// the current hinge state if one is available.
+/// When the interaction is disabled, if the handler's last update had a hinge, the handler is called once more with a nil `hinge`. After that, the handler isn't
+/// called for hinge updates, and updates that occur while the interaction is disabled aren't queued. When the interaction is re-enabled, the handler is called
+/// with the current hinge state if one is available.
@property (nonatomic, getter=isEnabled) BOOL enabled;
@end
diff -ruN /Applications/Xcode_27.3.0-beta1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/iOSSupport/System/Library/Frameworks/UIKit.framework/Headers/UIView.h /Applications/Xcode_27.3.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/iOSSupport/System/Library/Frameworks/UIKit.framework/Headers/UIView.h
--- /Applications/Xcode_27.3.0-beta1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/iOSSupport/System/Library/Frameworks/UIKit.framework/Headers/UIView.h 2026-11-04 03:32:11
+++ /Applications/Xcode_27.3.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/iOSSupport/System/Library/Frameworks/UIKit.framework/Headers/UIView.h 2026-11-23 18:18:38
@@ -760,9 +760,17 @@
@interface UIView (ReservedRegion)
/// Returns the reserved regions of a given kind.
+///
+/// If you call this method from ``UIView/layoutSubviews()``, UIKit calls `layoutSubviews()` again when the reserved regions change. UIKit does the same for any
+/// other method that supports automatic observation tracking. For more information, see
+/// <doc://com.apple.documentation/documentation/UIKit/automatic-observation-tracking>.
- (nonnull NSArray<UIViewReservedRegion *> *)reservedRegionsOfKind:(nonnull UIViewReservedRegionKind *)kind API_AVAILABLE(ios(27.1), tvos(27.1), visionos(27.1)) API_UNAVAILABLE(watchos) NS_REFINED_FOR_SWIFT;
/// Returns the reserved regions of a given kind and options.
+///
+/// If you call this method from ``UIView/layoutSubviews()``, UIKit calls `layoutSubviews()` again when the reserved regions change. UIKit does the same for any
+/// other method that supports automatic observation tracking. For more information, see
+/// <doc://com.apple.documentation/documentation/UIKit/automatic-observation-tracking>.
- (nonnull NSArray<UIViewReservedRegion *> *)reservedRegionsOfKind:(nonnull UIViewReservedRegionKind *)kind options:(UIViewReservedRegionQueryOptions)options API_AVAILABLE(ios(27.1), tvos(27.1), visionos(27.1)) API_UNAVAILABLE(watchos) NS_REFINED_FOR_SWIFT;
@end