peachsim 0.1.1716 → 0.1.1728

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (234) hide show
  1. package/README.md +21 -3
  2. package/cli/app-bundle-resources.ts +2 -1
  3. package/cli/app-fonts.ts +4 -4
  4. package/cli/app-splash.ts +4 -4
  5. package/cli/app-stubs.ts +17 -0
  6. package/cli/command-registry.ts +1 -0
  7. package/cli/commands/control.ts +82 -822
  8. package/cli/commands/daemon.ts +8 -0
  9. package/cli/commands/detox.ts +3 -0
  10. package/cli/commands/doctor.ts +19 -2
  11. package/cli/commands/inspect/actions.ts +74 -14
  12. package/cli/commands/inspect/core.ts +5 -1
  13. package/cli/commands/inspect/settling.ts +5 -2
  14. package/cli/commands/inspect/wait-ready.ts +6 -0
  15. package/cli/commands/inspect.ts +48 -45
  16. package/cli/commands/kotlin.ts +12 -2
  17. package/cli/commands/package.ts +750 -0
  18. package/cli/commands/serve.ts +6 -0
  19. package/cli/commands/shell-url.ts +834 -0
  20. package/cli/commands/swift.ts +42 -102
  21. package/cli/commands/test.ts +20 -0
  22. package/cli/commands/upload.ts +1 -1
  23. package/cli/device-option.ts +1 -1
  24. package/cli/main.ts +13 -1
  25. package/cli/native-input.ts +199 -0
  26. package/cli/outbound-endpoints.ts +26 -1
  27. package/cli/packaged-app-launcher.ts +95 -0
  28. package/cli/scene-video.ts +13 -6
  29. package/detox/index.ts +187 -23
  30. package/dist-lib/agent-daemon-client.cjs +1 -1
  31. package/dist-lib/agent-events.cjs +1 -1
  32. package/dist-lib/attached-projects.cjs +1 -1
  33. package/dist-lib/auth/shared-session.cjs +1 -1
  34. package/dist-lib/backend-origin.cjs +1 -1
  35. package/dist-lib/beta.cjs +1 -1
  36. package/dist-lib/beta.mjs +1 -1
  37. package/dist-lib/bridge-constants.cjs +1 -1
  38. package/dist-lib/bridge-contract-input.cjs +1 -1
  39. package/dist-lib/bridge-contract-input.mjs +1 -1
  40. package/dist-lib/bridge-contract.cjs +1 -1
  41. package/dist-lib/bridge-contract.mjs +1 -1
  42. package/dist-lib/bundle-channel.cjs +38000 -31658
  43. package/dist-lib/capture-contract.cjs +1 -1
  44. package/dist-lib/capture-contract.mjs +1 -1
  45. package/dist-lib/cloud-contract.cjs +1 -1
  46. package/dist-lib/cloud-contract.mjs +1 -1
  47. package/dist-lib/cloud-test-args.cjs +1 -1
  48. package/dist-lib/cloud-test-args.mjs +1 -1
  49. package/dist-lib/cloud.cjs +1 -1
  50. package/dist-lib/cloud.mjs +1 -1
  51. package/dist-lib/config.cjs +1 -1
  52. package/dist-lib/config.mjs +1 -1
  53. package/dist-lib/detox/index.cjs +184 -60
  54. package/dist-lib/dev-bundle-resolution.cjs +14 -13
  55. package/dist-lib/expo-swift-bundle.cjs +18199 -11834
  56. package/dist-lib/expo-swift-metadata.cjs +4 -1
  57. package/dist-lib/expo-swift-metadata.mjs +3 -1
  58. package/dist-lib/home-paths.cjs +21 -2
  59. package/dist-lib/host/bridge-host.cjs +26509 -23850
  60. package/dist-lib/host/fetch-proxy-handler.cjs +221 -222
  61. package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
  62. package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
  63. package/dist-lib/host/replacement-module-handler.cjs +1 -1
  64. package/dist-lib/host/websocket-proxy.cjs +1 -1
  65. package/dist-lib/index.cjs +876 -389
  66. package/dist-lib/jump-to-source-babel.cjs +1 -1
  67. package/dist-lib/jump-to-source-native.cjs +1 -1
  68. package/dist-lib/kotlin-host.cjs +127 -16
  69. package/dist-lib/menu.cjs +7 -1
  70. package/dist-lib/menu.mjs +7 -1
  71. package/dist-lib/metro-fingerprint-registry.cjs +1 -1
  72. package/dist-lib/metro-fingerprint-registry.mjs +1 -1
  73. package/dist-lib/metro-production-bundle.cjs +1 -1
  74. package/dist-lib/metro-production-bundle.mjs +1 -1
  75. package/dist-lib/metro.cjs +883 -404
  76. package/dist-lib/native-app-identity-project.cjs +694 -280
  77. package/dist-lib/native-app-identity-project.mjs +490 -83
  78. package/dist-lib/native-app-identity.cjs +13 -2
  79. package/dist-lib/native-app-identity.mjs +13 -2
  80. package/dist-lib/native-firebase-metadata.cjs +1 -1
  81. package/dist-lib/native-firebase-metadata.mjs +1 -1
  82. package/dist-lib/plist.cjs +1 -1
  83. package/dist-lib/plist.mjs +1 -1
  84. package/dist-lib/profiles.cjs +1 -1
  85. package/dist-lib/public-brand.cjs +1 -1
  86. package/dist-lib/public-origins-lib-esm.json +28 -23
  87. package/dist-lib/public-origins-lib.json +392 -224
  88. package/dist-lib/react-native-host-modules.cjs +32 -2
  89. package/dist-lib/react-native-host-modules.mjs +32 -2
  90. package/dist-lib/reap-browser.cjs +12 -4
  91. package/dist-lib/scripts/dev-server-scanner.cjs +15 -8
  92. package/dist-lib/sdk.cjs +17 -7
  93. package/dist-lib/sdk.mjs +16 -7
  94. package/dist-lib/skills.cjs +61838 -47851
  95. package/dist-lib/swift-compile.cjs +583 -360
  96. package/dist-lib/swift-compile.mjs +496 -275
  97. package/dist-lib/swift-package.cjs +1 -1
  98. package/dist-lib/swift-package.mjs +1 -1
  99. package/dist-lib/swift-submit.cjs +2 -2
  100. package/dist-lib/swift-submit.mjs +2 -2
  101. package/dist-lib/swift-toolchain.cjs +105 -17
  102. package/dist-lib/swift.cjs +1 -1
  103. package/dist-lib/vite-swift.cjs +4453 -2231
  104. package/dist-lib/vite.cjs +230 -228
  105. package/dist-lib/worklet-executable.cjs +1 -1
  106. package/dist-lib/worklet-executable.mjs +1 -1
  107. package/dist-types/packages/peach-compat/src/stubs/native-seams/react-native-cookies.d.ts +17 -8
  108. package/dist-types/packages/peach-engine/src/engine/canvaskit-renderer.d.ts +1 -0
  109. package/dist-types/packages/peach-engine/src/engine/image-loader.d.ts +7 -5
  110. package/dist-types/packages/peach-engine/src/engine/memory-counts.d.ts +3 -1
  111. package/dist-types/packages/peach-engine/src/engine/node.d.ts +1 -11
  112. package/dist-types/packages/peach-engine/src/engine/types.d.ts +3 -0
  113. package/dist-types/packages/peach-engine/src/render-worker/compositor-protocol.d.ts +9 -0
  114. package/dist-types/packages/peach-engine/src/render-worker/host-service-protocol.d.ts +3 -0
  115. package/dist-types/packages/peach-engine/src/render-worker/native-ui-commandContract.d.ts +1 -1
  116. package/dist-types/packages/peach-engine/src/render-worker/shell-protocol.d.ts +4 -0
  117. package/dist-types/packages/peach-engine/src/render-worker/tree-sync-port.d.ts +1 -1
  118. package/dist-types/packages/peach-engine/src/render-worker/worklet-runtime.d.ts +23 -1
  119. package/dist-types/packages/peach-engine/src/shell-events.d.ts +1 -0
  120. package/dist-types/packages/peach-globals/src/audioBridgeContract.d.ts +5 -0
  121. package/dist-types/packages/peach-globals/src/index.d.ts +1 -1
  122. package/dist-types/packages/peach-globals/src/keyboardBridgeContract.d.ts +11 -0
  123. package/dist-types/packages/peach-globals/src/shellBridgeContract.d.ts +1 -0
  124. package/dist-types/packages/peach-globals/src/testBridgeContract.d.ts +9 -2
  125. package/package.json +1 -1
  126. package/runtime-companion.json +1 -1
  127. package/scripts/dev-server-scanner.ts +12 -25
  128. package/sdk/ios/System/Library/Frameworks/AuthenticationServices.framework/Headers/ASFoundation.h +52 -0
  129. package/sdk/ios/System/Library/Frameworks/AuthenticationServices.framework/Headers/ASWebAuthenticationSession.h +128 -0
  130. package/sdk/ios/System/Library/Frameworks/AuthenticationServices.framework/Headers/ASWebAuthenticationSessionCallback.h +35 -0
  131. package/sdk/ios/System/Library/Frameworks/AuthenticationServices.framework/Headers/AuthenticationServices.h +3 -0
  132. package/sdk/ios/System/Library/Frameworks/AuthenticationServices.framework/Modules/module.modulemap +5 -0
  133. package/sdk/ios/System/Library/Frameworks/CFNetwork.framework/Headers/CFHTTPMessage.h +724 -0
  134. package/sdk/ios/System/Library/Frameworks/CFNetwork.framework/Headers/CFNetwork.h +4 -0
  135. package/sdk/ios/System/Library/Frameworks/CFNetwork.framework/Headers/CFNetworkDefs.h +27 -0
  136. package/sdk/ios/System/Library/Frameworks/CFNetwork.framework/Modules/module.modulemap +5 -0
  137. package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFURL.h +1301 -0
  138. package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.h +2 -0
  139. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLLocationManager.h +21 -50
  140. package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLRegion.h +6 -6
  141. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h +75 -9
  142. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h +12 -0
  143. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIInterface.h +23 -0
  144. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h +7 -9
  145. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIOrientation.h +14 -0
  146. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIStringDrawing.h +12 -0
  147. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIView.h +14 -0
  148. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIViewAnimating.h +12 -0
  149. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h +16 -0
  150. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIWindow.h +2 -0
  151. package/sdk/ios/usr/include/ConditionalMacros.h +619 -0
  152. package/sdk/ios/usr/include/module.modulemap +1 -0
  153. package/sdk/ios/usr/include/objc/objc-sync.h +59 -0
  154. package/sdk/ios/usr/include/os.modulemap +5 -0
  155. package/sdk/ios/usr/include/sys/cdefs.h +5 -0
  156. package/sdk/ios/usr/include/sys/ioccom.h +99 -0
  157. package/sdk/ios/usr/include/sys/syslog.h +236 -0
  158. package/sdk/ios/usr/include/syslog.h +24 -0
  159. package/sdk/ios/wasm/include/fcntl.h +4 -2
  160. package/sdk/ios/wasm/include/stdio.h +24 -0
  161. package/sdk/ios/wasm/include/stdlib.h +32 -7
  162. package/sdk/ios/wasm/include/sys/file.h +7 -0
  163. package/sdk/ios/wasm/include/sys/ioctl.h +6 -0
  164. package/sdk/ios/wasm/include/sys/syscall.h +9 -0
  165. package/sdk/ios/wasm/include/sys/time.h +10 -0
  166. package/sdk/ios/wasm/include/unistd.h +12 -3
  167. package/sdk/native-hashes.json +1 -0
  168. package/skills/contrast/SKILL.md +2 -1
  169. package/skills/peach-test/SKILL.md +7 -3
  170. package/src/admitted-mac-build.ts +3 -0
  171. package/src/android-app-identity.ts +18 -0
  172. package/src/android-root-module.ts +9 -9
  173. package/src/appPackageContract.ts +81 -0
  174. package/src/bridge-contract.ts +50 -0
  175. package/src/bundle-channel.mjs +21 -4
  176. package/src/dev-bundle-resolution.ts +7 -27
  177. package/src/dom-source-reference.ts +15 -0
  178. package/src/expo-discovery-cache.ts +127 -23
  179. package/src/expo-manifest-body.ts +33 -0
  180. package/src/expo-native-workspace.ts +38 -13
  181. package/src/expo-swift-host.ts +264 -62
  182. package/src/expoSwiftContract.ts +3 -0
  183. package/src/generated/swift-c-predefines.json +1 -1
  184. package/src/home-paths.ts +35 -1
  185. package/src/host/app-package-handler.ts +47 -0
  186. package/src/host/bridge-host.ts +3 -0
  187. package/src/host/staged-host-files.ts +18 -0
  188. package/src/index.ts +3 -0
  189. package/src/kotlin-host.ts +21 -18
  190. package/src/kotlin-instance-source.ts +126 -0
  191. package/src/menu.ts +7 -0
  192. package/src/native-app-identity-project.ts +7 -2
  193. package/src/native-app-identity.ts +11 -0
  194. package/src/native-firebase-config.ts +24 -1
  195. package/src/nitro-adapter.lock.json +268 -268
  196. package/src/nitro-bundle.ts +8 -0
  197. package/src/nitro-compile.ts +35 -9
  198. package/src/nitro-dependencies.ts +21 -19
  199. package/src/nitro-source.ts +4 -0
  200. package/src/nitroContract.ts +7 -0
  201. package/src/react-native-bridge-modules.ts +68 -42
  202. package/src/react-native-host-modules.ts +31 -1
  203. package/src/reactNativeConfigurationContract.ts +14 -0
  204. package/src/reap-browser.ts +15 -3
  205. package/src/sdk.ts +5 -0
  206. package/src/settingsContract.ts +27 -1
  207. package/src/sim-client.ts +4 -1
  208. package/src/storageSnapshotContract.ts +3 -0
  209. package/src/swift-compile.ts +221 -41
  210. package/src/swift-coverage/provenance.ts +1 -0
  211. package/src/swift-coverage/xcode-asset-symbols.ts +922 -0
  212. package/src/swift-coverage/xcode-assets.ts +89 -131
  213. package/src/swift-coverage/xcode.ts +1 -1
  214. package/src/swift-cxx-reachable.ts +2 -1
  215. package/src/swift-distribution.lock.json +14 -13
  216. package/src/swift-host.ts +95 -22
  217. package/src/swift-icu.ts +1 -1
  218. package/src/swift-link-roots.ts +118 -0
  219. package/src/swift-objc-compile.ts +144 -22
  220. package/src/swift-objc-import.ts +6 -0
  221. package/src/swift-objc-standin.ts +2 -14
  222. package/src/swift-package-manifest.ts +14 -6
  223. package/src/swift-packages.ts +75 -11
  224. package/src/swift-pdf-raster.ts +1 -0
  225. package/src/swift-root-lock.ts +17 -1
  226. package/src/swift-source-pods.ts +2 -10
  227. package/src/swift-standin-emit.ts +592 -57
  228. package/src/swift-standins.ts +430 -49
  229. package/src/swift-submit.ts +3 -1
  230. package/src/swift-toolchain.ts +140 -17
  231. package/src/turbo-codegen-intake.ts +91 -0
  232. package/src/vite-plugin-one.ts +13 -9
  233. package/src/vite-plugin.ts +28 -15
  234. package/src/xcode-project.ts +223 -22
@@ -116,7 +116,9 @@ CG_EXTERN void CGContextConcatCTM(CGContextRef _Nullable c, CGAffineTransform tr
116
116
  CG_EXTERN void CGContextDrawPDFPage(CGContextRef _Nullable c, CGPDFPageRef _Nullable page) __attribute__((availability(macos,introduced=10.3), availability(ios,introduced=2.0)));
117
117
  CG_EXTERN CGDataProviderRef _Nullable CGDataProviderCreateWithCFData( CFDataRef _Nullable data) __attribute__((availability(macos,introduced=10.4), availability(ios,introduced=2.0)));
118
118
  CG_EXTERN CGPDFDocumentRef _Nullable CGPDFDocumentCreateWithProvider( CGDataProviderRef _Nullable provider) __attribute__((availability(macos,introduced=10.0), availability(ios,introduced=2.0)));
119
+ CG_EXTERN CGPDFDocumentRef _Nullable CGPDFDocumentCreateWithURL( CFURLRef _Nullable url) __attribute__((availability(macos,introduced=10.0), availability(ios,introduced=2.0)));
119
120
  CG_EXTERN CGPDFPageRef _Nullable CGPDFDocumentGetPage( CGPDFDocumentRef _Nullable document, size_t pageNumber) __attribute__((availability(macos,introduced=10.3), availability(ios,introduced=2.0)));
121
+ CG_EXTERN CGPDFDocumentRef _Nullable CGPDFDocumentRetain( CGPDFDocumentRef _Nullable document) __attribute__((availability(macos,introduced=10.0), availability(ios,introduced=2.0)));
120
122
  CG_EXTERN void CGPDFDocumentRelease(CGPDFDocumentRef _Nullable document) __attribute__((availability(macos,introduced=10.0), availability(ios,introduced=2.0)));
121
123
  CG_EXTERN CGRect CGPDFPageGetBoxRect(CGPDFPageRef _Nullable page, CGPDFBox box) __attribute__((availability(macos,introduced=10.3), availability(ios,introduced=2.0)));
122
124
  CG_EXTERN CGAffineTransform CGPDFPageGetDrawingTransform( CGPDFPageRef _Nullable page, CGPDFBox box, CGRect rect, int rotate, bool preserveAspectRatio) __attribute__((availability(macos,introduced=10.3), availability(ios,introduced=2.0)));
@@ -24,15 +24,15 @@ NS_ASSUME_NONNULL_BEGIN
24
24
  * Specifies a physical device orientation, equivalent to UIDeviceOrientation.
25
25
  *
26
26
  */
27
- typedef NS_ENUM(int, CLDeviceOrientation) {
28
- CLDeviceOrientationUnknown = 0,
29
- CLDeviceOrientationPortrait,
30
- CLDeviceOrientationPortraitUpsideDown,
31
- CLDeviceOrientationLandscapeLeft,
32
- CLDeviceOrientationLandscapeRight,
33
- CLDeviceOrientationFaceUp,
34
- CLDeviceOrientationFaceDown
35
- };
27
+ typedef enum __attribute__((enum_extensibility(open))) CLDeviceOrientation : int32_t {
28
+ CLDeviceOrientationUnknown __attribute__((swift_name("CLDeviceOrientation.unknown"))) = 0,
29
+ CLDeviceOrientationPortrait __attribute__((swift_name("CLDeviceOrientation.portrait"))) = 1,
30
+ CLDeviceOrientationPortraitUpsideDown __attribute__((swift_name("CLDeviceOrientation.portraitUpsideDown"))) = 2,
31
+ CLDeviceOrientationLandscapeLeft __attribute__((swift_name("CLDeviceOrientation.landscapeLeft"))) = 3,
32
+ CLDeviceOrientationLandscapeRight __attribute__((swift_name("CLDeviceOrientation.landscapeRight"))) = 4,
33
+ CLDeviceOrientationFaceUp __attribute__((swift_name("CLDeviceOrientation.faceUp"))) = 5,
34
+ CLDeviceOrientationFaceDown __attribute__((swift_name("CLDeviceOrientation.faceDown"))) = 6,
35
+ } CLDeviceOrientation;
36
36
 
37
37
  /*
38
38
  * CLAuthorizationStatus
@@ -79,21 +79,10 @@ typedef NS_ENUM(int, CLAuthorizationStatus) {
79
79
  kCLAuthorizationStatusAuthorized API_DEPRECATED("Use kCLAuthorizationStatusAuthorizedAlways", ios(2.0, 8.0)) API_AVAILABLE(macos(10.6)) API_UNAVAILABLE(watchos, tvos, visionos) = kCLAuthorizationStatusAuthorizedAlways
80
80
  };
81
81
 
82
- typedef NS_ENUM(NSInteger, CLAccuracyAuthorization) {
83
- // This application has the user's permission to receive accurate location information.
84
- CLAccuracyAuthorizationFullAccuracy,
85
-
86
- // The user has chosen to grant this application access to location information with reduced accuracy.
87
- // Region monitoring and beacon ranging are not available to the application. Other CoreLocation APIs
88
- // are available with reduced accuracy.
89
-
90
- // Location estimates will have a horizontalAccuracy on the order of about 5km. To achieve the
91
- // reduction in accuracy, CoreLocation will snap location estimates to a nearby point which represents
92
- // the region the device is in. Furthermore, CoreLocation will reduce the rate at which location
93
- // estimates are produced. Applications should be prepared to receive locations that are up to 20
94
- // minutes old.
95
- CLAccuracyAuthorizationReducedAccuracy,
96
- };
82
+ typedef enum __attribute__((enum_extensibility(open))) CLAccuracyAuthorization : intptr_t {
83
+ CLAccuracyAuthorizationFullAccuracy __attribute__((swift_name("CLAccuracyAuthorization.fullAccuracy"))) = 0,
84
+ CLAccuracyAuthorizationReducedAccuracy __attribute__((swift_name("CLAccuracyAuthorization.reducedAccuracy"))) = 1,
85
+ } CLAccuracyAuthorization;
97
86
 
98
87
  /*
99
88
  * CLActivityType
@@ -103,32 +92,14 @@ typedef NS_ENUM(NSInteger, CLAccuracyAuthorization) {
103
92
  * Used to optimize the positioning experience delivered to this CLLocationManager instance
104
93
  * for the expected activity.
105
94
  */
106
- typedef NS_ENUM(NSInteger, CLActivityType) {
107
- CLActivityTypeOther = 1, // positioning in activities that are not covered by one of
108
- // the other activity types. Includes activities without a
109
- // specific user intention; for example, positioning while
110
- // the user sits on a bench interacting with the device
111
-
112
- CLActivityTypeAutomotiveNavigation, // positioning in an automobile following a road network
113
-
114
- CLActivityTypeFitness, // positioning in dedicated fitness sessions, e.g. walking
115
- // workouts, running workouts, cycling workouts, etc.
116
-
117
- CLActivityTypeOtherNavigation, // positioning for transportation that does not or may not
118
- // adhere to roads such as cycling, scooters, trains, boats
119
- // and off-road vehicles; also for positioning indoors and
120
- // outdoors that isn’t tied to a dedicated fitness session,
121
- // e.g. walking
122
-
123
- CLActivityTypeAirborne API_AVAILABLE(ios(12.0), macos(10.14), tvos(12.0), watchos(5.0)),
124
- // positioning for activities in the air, e.g. flying in an
125
- // airplane or helicopter, paragliding, flying on a drone,
126
- // skydiving, etc. Also includes runway taxiing
127
-
128
- CLActivityTypeMaritime API_AVAILABLE(ios(27.0), macos(27.0), tvos(27.0), watchos(27.0), visionos(27.0)),
129
- // positioning for vehicular activities on the water, e.g. boating,
130
- // sailing, etc.
131
- };
95
+ typedef enum __attribute__((enum_extensibility(open))) CLActivityType : intptr_t {
96
+ CLActivityTypeOther __attribute__((swift_name("CLActivityType.other"))) = 1,
97
+ CLActivityTypeAutomotiveNavigation __attribute__((swift_name("CLActivityType.automotiveNavigation"))) = 2,
98
+ CLActivityTypeFitness __attribute__((swift_name("CLActivityType.fitness"))) = 3,
99
+ CLActivityTypeOtherNavigation __attribute__((swift_name("CLActivityType.otherNavigation"))) = 4,
100
+ CLActivityTypeAirborne __attribute__((swift_name("CLActivityType.airborne"))) = 5,
101
+ CLActivityTypeMaritime __attribute__((swift_name("CLActivityType.maritime"))) = 6,
102
+ } CLActivityType;
132
103
 
133
104
  @class CLLocation;
134
105
  @class CLHeading;
@@ -32,12 +32,12 @@ typedef NS_CLOSED_ENUM(NSInteger, CLRegionState) {
32
32
  * Represents the current proximity of an entity.
33
33
  *
34
34
  */
35
- typedef NS_ENUM(NSInteger, CLProximity) {
36
- CLProximityUnknown,
37
- CLProximityImmediate,
38
- CLProximityNear,
39
- CLProximityFar
40
- } API_AVAILABLE(ios(7.0), macos(10.15)) API_UNAVAILABLE(watchos, tvos, visionos);
35
+ typedef enum __attribute__((enum_extensibility(open))) CLProximity : intptr_t {
36
+ CLProximityUnknown __attribute__((swift_name("CLProximity.unknown"))) = 0,
37
+ CLProximityImmediate __attribute__((swift_name("CLProximity.immediate"))) = 1,
38
+ CLProximityNear __attribute__((swift_name("CLProximity.near"))) = 2,
39
+ CLProximityFar __attribute__((swift_name("CLProximity.far"))) = 3,
40
+ } CLProximity;
41
41
 
42
42
  /*
43
43
  * CLRegion
@@ -62,20 +62,20 @@ typedef void NSUncaughtExceptionHandler(NSException * _Nonnull exception);
62
62
  #endif
63
63
  #endif
64
64
  #endif
65
- #define FOUNDATION_EXPORT extern
65
+ #if defined(__cplusplus)
66
+ #define FOUNDATION_EXTERN extern "C"
67
+ #else
66
68
  #define FOUNDATION_EXTERN extern
69
+ #endif
70
+ #define FOUNDATION_EXPORT FOUNDATION_EXTERN
67
71
  #define FOUNDATION_STATIC_INLINE static inline
68
72
  #define NS_INLINE static inline
69
- #define CF_EXPORT extern
70
- #define OBJC_EXPORT extern
71
73
  #define NS_ASSUME_NONNULL_BEGIN _Pragma("clang assume_nonnull begin")
72
74
  #define NS_ASSUME_NONNULL_END _Pragma("clang assume_nonnull end")
73
75
  #define CF_ASSUME_NONNULL_BEGIN _Pragma("clang assume_nonnull begin")
74
76
  #define CF_ASSUME_NONNULL_END _Pragma("clang assume_nonnull end")
75
77
  #define NS_HEADER_AUDIT_BEGIN(...) _Pragma("clang assume_nonnull begin")
76
78
  #define NS_HEADER_AUDIT_END(...) _Pragma("clang assume_nonnull end")
77
- #define CF_EXTERN_C_BEGIN
78
- #define CF_EXTERN_C_END
79
79
  #include <sys/cdefs.h>
80
80
 
81
81
  #define NS_ENUM(...) CF_ENUM(__VA_ARGS__)
@@ -1051,8 +1051,38 @@ __attribute__((swift_bridge("Swift.Set")))
1051
1051
  - (instancetype)initWithObjects:(ObjectType)firstObj, ... NS_REQUIRES_NIL_TERMINATION;
1052
1052
  @end
1053
1053
  @interface NSOrderedSet<__covariant ObjectType> : NSObject <NSCopying, NSMutableCopying, NSSecureCoding, NSFastEnumeration>
1054
+ @property (readonly) NSUInteger count;
1055
+ - (ObjectType)objectAtIndex:(NSUInteger)idx;
1056
+ - (NSUInteger)indexOfObject:(ObjectType)object;
1057
+ - (instancetype)init NS_DESIGNATED_INITIALIZER;
1058
+ - (instancetype)initWithObjects:(const ObjectType _Nonnull [_Nullable])objects count:(NSUInteger)cnt NS_DESIGNATED_INITIALIZER;
1059
+ - (nullable instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
1060
+ - (ObjectType)objectAtIndexedSubscript:(NSUInteger)idx API_AVAILABLE(macos(10.8), ios(6.0), watchos(2.0), tvos(9.0));
1054
1061
  @end
1055
1062
  @interface NSMutableOrderedSet<ObjectType> : NSOrderedSet<ObjectType>
1063
+ - (void)insertObject:(ObjectType)object atIndex:(NSUInteger)idx;
1064
+ - (void)removeObjectAtIndex:(NSUInteger)idx;
1065
+ - (void)replaceObjectAtIndex:(NSUInteger)idx withObject:(ObjectType)object;
1066
+ - (void)setObject:(ObjectType)obj atIndexedSubscript:(NSUInteger)idx API_AVAILABLE(macos(10.8), ios(6.0), watchos(2.0), tvos(9.0));
1067
+ - (nullable instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
1068
+ - (instancetype)init NS_DESIGNATED_INITIALIZER;
1069
+ - (instancetype)initWithCapacity:(NSUInteger)numItems NS_DESIGNATED_INITIALIZER;
1070
+ @end
1071
+ @interface NSMutableOrderedSet<ObjectType> (NSExtendedMutableOrderedSet)
1072
+ - (void)addObject:(ObjectType)object;
1073
+ - (void)addObjectsFromArray:(NSArray<ObjectType> *)array;
1074
+ - (void)removeAllObjects;
1075
+ @end
1076
+ @interface NSOrderedSet<ObjectType> (NSOrderedSetCreation)
1077
+ - (instancetype)initWithObject:(ObjectType)object;
1078
+ - (instancetype)initWithOrderedSet:(NSOrderedSet<ObjectType> *)set;
1079
+ - (instancetype)initWithOrderedSet:(NSOrderedSet<ObjectType> *)set copyItems:(BOOL)flag;
1080
+ - (instancetype)initWithOrderedSet:(NSOrderedSet<ObjectType> *)set range:(NSRange)range copyItems:(BOOL)flag;
1081
+ - (instancetype)initWithArray:(NSArray<ObjectType> *)array;
1082
+ - (instancetype)initWithArray:(NSArray<ObjectType> *)array copyItems:(BOOL)flag;
1083
+ - (instancetype)initWithArray:(NSArray<ObjectType> *)array range:(NSRange)range copyItems:(BOOL)flag;
1084
+ - (instancetype)initWithSet:(NSSet<ObjectType> *)set;
1085
+ - (instancetype)initWithSet:(NSSet<ObjectType> *)set copyItems:(BOOL)flag;
1056
1086
  @end
1057
1087
  @interface NSEnumerator<ObjectType> : NSObject <NSFastEnumeration>
1058
1088
  - (nullable ObjectType)nextObject;
@@ -1362,6 +1392,8 @@ NS_SWIFT_SENDABLE
1362
1392
  - (void)removeCachedResourceValueForKey:(NSURLResourceKey)key API_AVAILABLE(macos(10.9), ios(7.0), watchos(2.0), tvos(9.0));
1363
1393
  - (void)removeAllCachedResourceValues API_AVAILABLE(macos(10.9), ios(7.0), watchos(2.0), tvos(9.0));
1364
1394
  - (void)setTemporaryResourceValue:(nullable NS_SWIFT_SENDABLE id)value forKey:(NSURLResourceKey)key API_AVAILABLE(macos(10.9), ios(7.0), watchos(2.0), tvos(9.0));
1395
+ - (BOOL)startAccessingSecurityScopedResource API_AVAILABLE(macos(10.7), ios(8.0), watchos(2.0), tvos(9.0));
1396
+ - (void)stopAccessingSecurityScopedResource API_AVAILABLE(macos(10.7), ios(8.0), watchos(2.0), tvos(9.0));
1365
1397
 
1366
1398
 
1367
1399
 
@@ -1779,10 +1811,16 @@ NS_SWIFT_NAME(URLSessionConfiguration)
1779
1811
  @end
1780
1812
  __attribute__((swift_bridge("UUID")))
1781
1813
  @interface NSUUID : NSObject <NSCopying, NSSecureCoding>
1782
- + (instancetype)UUID;
1814
+ - (instancetype)init NS_DESIGNATED_INITIALIZER;
1815
+ - (nullable instancetype)initWithUUIDString:(NSString *)string;
1816
+ - (instancetype)initWithUUIDBytes:(const uuid_t _Nullable)bytes;
1783
1817
  - (void)getUUIDBytes:(uuid_t _Nonnull)uuid;
1818
+ - (NSComparisonResult)compare:(NSUUID *)otherUUID API_AVAILABLE(macos(12.0), ios(15.0), watchos(8.0), tvos(15.0));
1784
1819
  @property (readonly, copy) NSString *UUIDString;
1785
1820
  @end
1821
+ @interface NSUUID (NSUUIDCreation)
1822
+ + (instancetype)UUID NS_SWIFT_UNAVAILABLE("Use init() instead");
1823
+ @end
1786
1824
  __attribute__((swift_bridge("IndexPath")))
1787
1825
  @interface NSIndexPath : NSObject <NSCopying, NSSecureCoding>
1788
1826
  @end
@@ -2141,11 +2179,14 @@ NS_SWIFT_NAME(Bundle)
2141
2179
  @property (nullable, readonly, copy) NSURL *appStoreReceiptURL __attribute__((availability(macos,introduced=10.7), availability(ios,introduced=7.0), availability(watchos,introduced=2.0), availability(tvos,introduced=9.0)));
2142
2180
  #endif
2143
2181
  @property (readonly, copy) NSString *bundlePath;
2182
+ @property (readonly, copy) NSURL *bundleURL __attribute__((availability(macos,introduced=10.6), availability(ios,introduced=4.0), availability(watchos,introduced=2.0), availability(tvos,introduced=9.0)));
2183
+ @property (nullable, readonly, copy) NSURL *resourceURL __attribute__((availability(macos,introduced=10.6), availability(ios,introduced=4.0), availability(watchos,introduced=2.0), availability(tvos,introduced=9.0)));
2144
2184
  @property (nullable, readonly, copy) NSString *executablePath;
2145
2185
  @property (nullable, readonly, copy) NSDictionary<NSString *, id> *infoDictionary;
2146
2186
  @property (class, readonly, strong) NSBundle *mainBundle;
2147
2187
  - (nullable NSURL *)URLForResource:(nullable NSString *)name withExtension:(nullable NSString *)ext __attribute__((availability(macos,introduced=10.6), availability(ios,introduced=4.0), availability(watchos,introduced=2.0), availability(tvos,introduced=9.0)));
2148
2188
  - (nullable instancetype)initWithURL:(NSURL *)url __attribute__((availability(macos,introduced=10.6), availability(ios,introduced=4.0), availability(watchos,introduced=2.0), availability(tvos,introduced=9.0)));
2189
+ + (nullable instancetype)bundleWithURL:(NSURL *)url __attribute__((availability(macos,introduced=10.6), availability(ios,introduced=4.0), availability(watchos,introduced=2.0), availability(tvos,introduced=9.0)));
2149
2190
  + (NSBundle *)bundleForClass:(Class)aClass;
2150
2191
  @property (nullable, readonly, copy) NSString *bundleIdentifier;
2151
2192
  - (NSString *)localizedStringForKey:(NSString *)key value:(nullable NSString *)value table:(nullable NSString *)tableName NS_FORMAT_ARGUMENT(1);
@@ -2995,6 +3036,18 @@ NS_SWIFT_NAME(InputStream)
2995
3036
  NS_SWIFT_NAME(OutputStream)
2996
3037
  @interface NSOutputStream : NSStream
2997
3038
  @end
3039
+ typedef NS_OPTIONS(NSUInteger, NSStreamEvent) {
3040
+ NSStreamEventNone = 0,
3041
+ NSStreamEventOpenCompleted = 1UL << 0,
3042
+ NSStreamEventHasBytesAvailable = 1UL << 1,
3043
+ NSStreamEventHasSpaceAvailable = 1UL << 2,
3044
+ NSStreamEventErrorOccurred = 1UL << 3,
3045
+ NSStreamEventEndEncountered = 1UL << 4
3046
+ };
3047
+ @protocol NSStreamDelegate <NSObject>
3048
+ @optional
3049
+ - (void)stream:(NSStream *)aStream handleEvent:(NSStreamEvent)eventCode;
3050
+ @end
2998
3051
  typedef NS_ENUM(NSUInteger, NSDateFormatterBehavior) { NSDateFormatterBehaviorDefault = 0, NSDateFormatterBehavior10_4 = 1040 };
2999
3052
  NS_SWIFT_NAME(Formatter)
3000
3053
  @interface NSFormatter : NSObject <NSCopying, NSCoding>
@@ -3086,13 +3139,16 @@ __attribute__((availability(ios,introduced=6.0)))
3086
3139
  - (void)cache:(NSCache *)cache willEvictObject:(id)obj;
3087
3140
  @end
3088
3141
  @interface NSCache<KeyType, ObjectType> : NSObject
3142
+ @property (copy) NSString *name;
3143
+ @property (nullable, assign) id<NSCacheDelegate> delegate;
3144
+ - (nullable ObjectType)objectForKey:(KeyType)key;
3145
+ - (void)setObject:(ObjectType)obj forKey:(KeyType)key;
3089
3146
  - (void)setObject:(ObjectType)obj forKey:(KeyType)key cost:(NSUInteger)g;
3090
- - (void)removeAllObjects;
3091
3147
  - (void)removeObjectForKey:(KeyType)key;
3092
- - (nullable ObjectType)objectForKey:(KeyType)key;
3148
+ - (void)removeAllObjects;
3093
3149
  @property NSUInteger totalCostLimit;
3094
3150
  @property NSUInteger countLimit;
3095
- @property (nullable, assign) id<NSCacheDelegate> delegate;
3151
+ @property BOOL evictsObjectsWithDiscardedContent;
3096
3152
  @end
3097
3153
  @interface NSMapTable<KeyType, ObjectType> : NSObject <NSCopying, NSSecureCoding, NSFastEnumeration>
3098
3154
  - (void)removeAllObjects;
@@ -3337,6 +3393,16 @@ FOUNDATION_EXPORT NSURLResourceKey const NSURLTotalFileAllocatedSizeKey __a
3337
3393
  @property (readonly, copy) NSURLResponse *response;
3338
3394
  @property (readonly, copy) NSData *data;
3339
3395
  @end
3396
+ #if TARGET_OS_IPHONE
3397
+ #if __has_include(<CFNetwork/CFNetwork.h>)
3398
+ #ifndef __swift__
3399
+ // the swift CFNetwork module imports Foundation; keep this edge for C/ObjC.
3400
+ #import <CFNetwork/CFNetwork.h>
3401
+ #endif
3402
+ #endif
3403
+ #else
3404
+ #import <CoreServices/CoreServices.h>
3405
+ #endif
3340
3406
  FOUNDATION_EXPORT NSErrorDomain const NSURLErrorDomain;
3341
3407
  NS_ERROR_ENUM(NSURLErrorDomain)
3342
3408
  {
@@ -0,0 +1,12 @@
1
+ // generated by scripts/generate/swift-uikit-enums.py from the
2
+ // iOS 27.1 UIKit symbol graph and its clang integer constants.
3
+ #pragma once
4
+ #pragma clang system_header
5
+ #include <stdbool.h>
6
+ #include <stdint.h>
7
+
8
+ typedef enum __attribute__((enum_extensibility(open))) UIStatusBarStyle : intptr_t {
9
+ UIStatusBarStyleDarkContent __attribute__((swift_name("UIStatusBarStyle.darkContent"))) = 3,
10
+ UIStatusBarStyleDefault __attribute__((swift_name("UIStatusBarStyle.default"))) = 0,
11
+ UIStatusBarStyleLightContent __attribute__((swift_name("UIStatusBarStyle.lightContent"))) = 1,
12
+ } UIStatusBarStyle;
@@ -0,0 +1,23 @@
1
+ // generated by scripts/generate/swift-uikit-enums.py from the
2
+ // iOS 27.1 UIKit symbol graph and its clang integer constants.
3
+ #pragma once
4
+ #pragma clang system_header
5
+ #include <stdbool.h>
6
+ #include <stdint.h>
7
+
8
+ typedef enum __attribute__((enum_extensibility(open))) UIBarStyle : intptr_t {
9
+ UIBarStyleBlack __attribute__((swift_name("UIBarStyle.black"))) = 1,
10
+ UIBarStyleBlackTranslucent __attribute__((swift_name("UIBarStyle.blackTranslucent"))) = 2,
11
+ UIBarStyleDefault __attribute__((swift_name("UIBarStyle.default"))) = 0,
12
+ } UIBarStyle;
13
+
14
+ typedef enum __attribute__((enum_extensibility(open))) UIUserInterfaceLayoutDirection : intptr_t {
15
+ UIUserInterfaceLayoutDirectionLeftToRight __attribute__((swift_name("UIUserInterfaceLayoutDirection.leftToRight"))) = 0,
16
+ UIUserInterfaceLayoutDirectionRightToLeft __attribute__((swift_name("UIUserInterfaceLayoutDirection.rightToLeft"))) = 1,
17
+ } UIUserInterfaceLayoutDirection;
18
+
19
+ typedef enum __attribute__((enum_extensibility(open))) UIUserInterfaceStyle : intptr_t {
20
+ UIUserInterfaceStyleDark __attribute__((swift_name("UIUserInterfaceStyle.dark"))) = 2,
21
+ UIUserInterfaceStyleLight __attribute__((swift_name("UIUserInterfaceStyle.light"))) = 1,
22
+ UIUserInterfaceStyleUnspecified __attribute__((swift_name("UIUserInterfaceStyle.unspecified"))) = 0,
23
+ } UIUserInterfaceStyle;
@@ -2,6 +2,13 @@
2
2
  #import <Foundation/Foundation.h>
3
3
  @class UIStatusBarManager;
4
4
  #import <UIKit/UIAppearance.h>
5
+ #import <UIKit/UIApplication.h>
6
+ #import <UIKit/UIInterface.h>
7
+ #import <UIKit/UIOrientation.h>
8
+ #import <UIKit/UIStringDrawing.h>
9
+ #import <UIKit/UIView.h>
10
+ #import <UIKit/UIViewAnimating.h>
11
+ #import <UIKit/UIViewController.h>
5
12
  #import <QuartzCore/QuartzCore.h>
6
13
  #import <CoreImage/CoreImage.h>
7
14
  #ifdef __cplusplus
@@ -48,11 +55,8 @@ typedef NS_ENUM(NSInteger, UITextFieldViewMode) { UITextFieldViewModeNever, UITe
48
55
  typedef NS_ENUM(NSInteger, UITextFieldDidEndEditingReason) { UITextFieldDidEndEditingReasonCommitted, UITextFieldDidEndEditingReasonCancelled __attribute__((availability(ios,unavailable), availability(watchos,unavailable), availability(tvos,introduced=10.0))) } __attribute__((availability(ios,introduced=10.0), availability(watchos,unavailable))) NS_SWIFT_NAME(UITextField.DidEndEditingReason);
49
56
  typedef NS_ENUM(NSInteger, NSTextAlignment) { NSTextAlignmentLeft = 0, NSTextAlignmentCenter = 1, NSTextAlignmentRight = 2, NSTextAlignmentJustified = 3, NSTextAlignmentNatural = 4 } __attribute__((availability(ios,introduced=6.0)));
50
57
  typedef NS_ENUM(NSInteger, UITableViewRowAnimation) { UITableViewRowAnimationFade, UITableViewRowAnimationRight, UITableViewRowAnimationLeft, UITableViewRowAnimationTop, UITableViewRowAnimationBottom, UITableViewRowAnimationNone, UITableViewRowAnimationMiddle, UITableViewRowAnimationAutomatic = 100 };
51
- typedef NS_ENUM(NSInteger, UIStatusBarStyle) { UIStatusBarStyleDefault = 0, UIStatusBarStyleLightContent = 1, UIStatusBarStyleDarkContent = 3 };
52
58
  typedef NS_OPTIONS(NSUInteger, UIInterfaceOrientationMask) { UIInterfaceOrientationMaskPortrait = 1 << 1, UIInterfaceOrientationMaskLandscapeLeft = 1 << 4, UIInterfaceOrientationMaskLandscapeRight = 1 << 3, UIInterfaceOrientationMaskAll = 30 };
53
- typedef NS_ENUM(NSInteger, UIInterfaceOrientation) { UIInterfaceOrientationUnknown = 0, UIInterfaceOrientationPortrait = 1, UIInterfaceOrientationPortraitUpsideDown = 2, UIInterfaceOrientationLandscapeLeft = 4, UIInterfaceOrientationLandscapeRight = 3 };
54
59
 
55
- typedef NS_ENUM(NSInteger, UIUserInterfaceStyle) { UIUserInterfaceStyleUnspecified, UIUserInterfaceStyleLight, UIUserInterfaceStyleDark };
56
60
  typedef NS_ENUM(NSInteger, UIBlurEffectStyle) { UIBlurEffectStyleExtraLight, UIBlurEffectStyleLight, UIBlurEffectStyleDark, UIBlurEffectStyleExtraDark __attribute__((availability(tvos,introduced=10.0))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))), UIBlurEffectStyleRegular __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,unavailable))), UIBlurEffectStyleProminent __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,unavailable))), UIBlurEffectStyleSystemUltraThinMaterial __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,unavailable), availability(tvos,unavailable))), UIBlurEffectStyleSystemThinMaterial __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,unavailable), availability(tvos,unavailable))), UIBlurEffectStyleSystemMaterial __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,unavailable), availability(tvos,unavailable))), UIBlurEffectStyleSystemThickMaterial __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,unavailable), availability(tvos,unavailable))), UIBlurEffectStyleSystemChromeMaterial __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,unavailable), availability(tvos,unavailable))), UIBlurEffectStyleSystemUltraThinMaterialLight __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,unavailable), availability(tvos,unavailable))), UIBlurEffectStyleSystemThinMaterialLight __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,unavailable), availability(tvos,unavailable))), UIBlurEffectStyleSystemMaterialLight __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,unavailable), availability(tvos,unavailable))), UIBlurEffectStyleSystemThickMaterialLight __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,unavailable), availability(tvos,unavailable))), UIBlurEffectStyleSystemChromeMaterialLight __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,unavailable), availability(tvos,unavailable))), UIBlurEffectStyleSystemUltraThinMaterialDark __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,unavailable), availability(tvos,unavailable))), UIBlurEffectStyleSystemThinMaterialDark __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,unavailable), availability(tvos,unavailable))), UIBlurEffectStyleSystemMaterialDark __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,unavailable), availability(tvos,unavailable))), UIBlurEffectStyleSystemThickMaterialDark __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,unavailable), availability(tvos,unavailable))), UIBlurEffectStyleSystemChromeMaterialDark __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,unavailable), availability(tvos,unavailable))) } __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,unavailable)));
57
61
  typedef NS_ENUM(NSInteger, UIAlertActionStyle) { UIAlertActionStyleDefault = 0, UIAlertActionStyleCancel, UIAlertActionStyleDestructive } __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,unavailable)));
58
62
  typedef NS_ENUM(NSInteger, UIImageSymbolWeight) { UIImageSymbolWeightUnspecified = 0, UIImageSymbolWeightUltraLight = 1, UIImageSymbolWeightThin, UIImageSymbolWeightLight, UIImageSymbolWeightRegular, UIImageSymbolWeightMedium, UIImageSymbolWeightSemibold, UIImageSymbolWeightBold, UIImageSymbolWeightHeavy, UIImageSymbolWeightBlack } __attribute__((availability(ios,introduced=13.0), availability(tvos,introduced=13.0), availability(watchos,introduced=6.0)));
@@ -71,23 +75,17 @@ static inline BOOL UIInterfaceOrientationIsPortrait(UIInterfaceOrientation orien
71
75
  typedef NS_OPTIONS(NSUInteger, UIViewAutoresizing) { UIViewAutoresizingNone = 0, UIViewAutoresizingFlexibleLeftMargin = 1 << 0, UIViewAutoresizingFlexibleWidth = 1 << 1, UIViewAutoresizingFlexibleRightMargin = 1 << 2, UIViewAutoresizingFlexibleTopMargin = 1 << 3, UIViewAutoresizingFlexibleHeight = 1 << 4, UIViewAutoresizingFlexibleBottomMargin = 1 << 5 } __attribute__((availability(watchos,unavailable)));
72
76
  typedef NS_ENUM(NSInteger, UIViewContentMode) { UIViewContentModeScaleToFill, UIViewContentModeScaleAspectFit, UIViewContentModeScaleAspectFill, UIViewContentModeRedraw, UIViewContentModeCenter, UIViewContentModeTop, UIViewContentModeBottom, UIViewContentModeLeft, UIViewContentModeRight, UIViewContentModeTopLeft, UIViewContentModeTopRight, UIViewContentModeBottomLeft, UIViewContentModeBottomRight, } __attribute__((availability(watchos,unavailable)));
73
77
  typedef NS_ENUM(NSInteger, UIUserInterfaceIdiom) { UIUserInterfaceIdiomUnspecified = -1, UIUserInterfaceIdiomPhone __attribute__((availability(ios,introduced=3.2))), UIUserInterfaceIdiomPad __attribute__((availability(ios,introduced=3.2))), UIUserInterfaceIdiomTV __attribute__((availability(ios,introduced=9.0))), UIUserInterfaceIdiomCarPlay __attribute__((availability(ios,introduced=9.0))), UIUserInterfaceIdiomMac __attribute__((availability(ios,introduced=14.0))) __attribute__((availability(watchos,unavailable))) = 5, UIUserInterfaceIdiomVision __attribute__((availability(ios,introduced=17.0))) __attribute__((availability(watchos,unavailable))) = 6, } __attribute__((availability(watchos,unavailable)));
74
- typedef NS_ENUM(NSInteger, UIUserInterfaceLayoutDirection) { UIUserInterfaceLayoutDirectionLeftToRight, UIUserInterfaceLayoutDirectionRightToLeft, } __attribute__((availability(ios,introduced=5.0))) __attribute__((availability(watchos,unavailable)));
75
78
  typedef NS_ENUM(NSInteger, UIScrollViewContentInsetAdjustmentBehavior) { UIScrollViewContentInsetAdjustmentAutomatic, UIScrollViewContentInsetAdjustmentScrollableAxes, UIScrollViewContentInsetAdjustmentNever, UIScrollViewContentInsetAdjustmentAlways, } __attribute__((availability(ios,introduced=11.0), availability(tvos,introduced=11.0))) __attribute__((availability(watchos,unavailable)));
76
79
  typedef NS_OPTIONS(NSUInteger, UIRectEdge) { UIRectEdgeNone = 0, UIRectEdgeTop = 1 << 0, UIRectEdgeLeft = 1 << 1, UIRectEdgeBottom = 1 << 2, UIRectEdgeRight = 1 << 3, UIRectEdgeAll = UIRectEdgeTop | UIRectEdgeLeft | UIRectEdgeBottom | UIRectEdgeRight } __attribute__((availability(ios,introduced=7.0), availability(watchos,introduced=2.0)));
77
- typedef NS_ENUM(NSInteger, UIModalTransitionStyle) { UIModalTransitionStyleCoverVertical = 0, UIModalTransitionStyleFlipHorizontal __attribute__((availability(tvos,unavailable))), UIModalTransitionStyleCrossDissolve, UIModalTransitionStylePartialCurl __attribute__((availability(ios,introduced=3.2))) __attribute__((availability(tvos,unavailable))), } __attribute__((availability(watchos,unavailable)));
78
80
  typedef NS_ENUM(NSInteger, UIModalPresentationStyle) { UIModalPresentationFullScreen = 0, UIModalPresentationPageSheet __attribute__((availability(ios,introduced=3.2))) __attribute__((availability(tvos,unavailable))), UIModalPresentationFormSheet __attribute__((availability(ios,introduced=3.2), availability(tvos,introduced=26.0))), UIModalPresentationCurrentContext __attribute__((availability(ios,introduced=3.2))), UIModalPresentationCustom __attribute__((availability(ios,introduced=7.0))), UIModalPresentationOverFullScreen __attribute__((availability(ios,introduced=8.0))), UIModalPresentationOverCurrentContext __attribute__((availability(ios,introduced=8.0))), UIModalPresentationPopover __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(tvos,unavailable))), UIModalPresentationBlurOverFullScreen __attribute__((availability(tvos,introduced=11.0))) __attribute__((availability(ios,unavailable))) __attribute__((availability(watchos,unavailable))), UIModalPresentationNone __attribute__((availability(ios,introduced=7.0))) = -1, UIModalPresentationAutomatic __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(watchos,unavailable))) = -2, } __attribute__((availability(watchos,unavailable)));
79
81
  typedef NS_ENUM(NSInteger, UIGestureRecognizerState) { UIGestureRecognizerStatePossible, UIGestureRecognizerStateBegan, UIGestureRecognizerStateChanged, UIGestureRecognizerStateEnded, UIGestureRecognizerStateCancelled, UIGestureRecognizerStateFailed, UIGestureRecognizerStateRecognized = UIGestureRecognizerStateEnded } __attribute__((availability(watchos,unavailable)));
80
82
  typedef NS_ENUM(NSInteger, UIButtonType) { UIButtonTypeCustom = 0, UIButtonTypeSystem __attribute__((availability(ios,introduced=7.0))), UIButtonTypeDetailDisclosure, UIButtonTypeInfoLight, UIButtonTypeInfoDark, UIButtonTypeContactAdd, UIButtonTypePlain __attribute__((availability(tvos,introduced=11.0))) __attribute__((availability(ios,unavailable), availability(watchos,unavailable))), UIButtonTypeClose __attribute__((availability(ios,introduced=13.0))) __attribute__((availability(tvos,unavailable), availability(watchos,unavailable))), UIButtonTypeRoundedRect = UIButtonTypeSystem } __attribute__((availability(watchos,unavailable)));
81
- typedef NS_ENUM(NSInteger, UIBarStyle) { UIBarStyleDefault = 0, UIBarStyleBlack = 1, UIBarStyleBlackOpaque __attribute__((availability(ios,introduced=2.0,deprecated=13.0,message="Use UIBarStyleBlack instead."))) __attribute__((availability(tvos,unavailable), availability(visionos,unavailable))) __attribute__((availability(watchos,unavailable))) = 1, UIBarStyleBlackTranslucent __attribute__((availability(ios,introduced=2.0,deprecated=13.0,message="Use UIBarStyleBlack and set the translucent property to YES instead."))) __attribute__((availability(tvos,unavailable), availability(visionos,unavailable))) __attribute__((availability(watchos,unavailable))) = 2, } __attribute__((availability(tvos,unavailable), availability(watchos,unavailable)));
82
83
  typedef NS_ENUM(NSInteger, UIAlertControllerStyle) { UIAlertControllerStyleActionSheet = 0, UIAlertControllerStyleAlert } __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,unavailable)));
83
- typedef NS_ENUM(NSInteger, UIBaselineAdjustment) { UIBaselineAdjustmentAlignBaselines = 0, UIBaselineAdjustmentAlignCenters, UIBaselineAdjustmentNone, } __attribute__((availability(watchos,unavailable)));
84
84
  typedef NSString * UITransitionContextViewControllerKey NS_TYPED_ENUM __attribute__((availability(watchos,unavailable)));
85
85
  UIKIT_EXTERN UITransitionContextViewControllerKey const UITransitionContextToViewControllerKey __attribute__((availability(watchos,unavailable))) NS_SWIFT_NAME(to) __attribute__((availability(ios,introduced=7.0)));
86
86
  UIKIT_EXTERN UITransitionContextViewControllerKey const UITransitionContextFromViewControllerKey __attribute__((availability(watchos,unavailable))) NS_SWIFT_NAME(from) __attribute__((availability(ios,introduced=7.0)));
87
87
  typedef NS_OPTIONS(NSUInteger, UIViewAnimationOptions) { UIViewAnimationOptionLayoutSubviews = 1 << 0, UIViewAnimationOptionAllowUserInteraction = 1 << 1, UIViewAnimationOptionBeginFromCurrentState = 1 << 2, UIViewAnimationOptionRepeat = 1 << 3, UIViewAnimationOptionAutoreverse = 1 << 4, UIViewAnimationOptionOverrideInheritedDuration = 1 << 5, UIViewAnimationOptionOverrideInheritedCurve = 1 << 6, UIViewAnimationOptionAllowAnimatedContent = 1 << 7, UIViewAnimationOptionShowHideTransitionViews = 1 << 8, UIViewAnimationOptionOverrideInheritedOptions = 1 << 9, UIViewAnimationOptionCurveEaseInOut = 0 << 16, UIViewAnimationOptionCurveEaseIn = 1 << 16, UIViewAnimationOptionCurveEaseOut = 2 << 16, UIViewAnimationOptionCurveLinear = 3 << 16, UIViewAnimationOptionTransitionNone = 0 << 20, UIViewAnimationOptionTransitionFlipFromLeft = 1 << 20, UIViewAnimationOptionTransitionFlipFromRight = 2 << 20, UIViewAnimationOptionTransitionCurlUp = 3 << 20, UIViewAnimationOptionTransitionCurlDown = 4 << 20, UIViewAnimationOptionTransitionCrossDissolve = 5 << 20, UIViewAnimationOptionTransitionFlipFromTop = 6 << 20, UIViewAnimationOptionTransitionFlipFromBottom = 7 << 20, UIViewAnimationOptionPreferredFramesPerSecondDefault = 0 << 24, UIViewAnimationOptionPreferredFramesPerSecond60 = 3 << 24, UIViewAnimationOptionPreferredFramesPerSecond30 = 7 << 24, UIViewAnimationOptionFlushUpdates __attribute__((availability(ios,introduced=26.0), availability(macos,introduced=26.0), availability(tvos,introduced=26.0), availability(visionos,introduced=26.0))) __attribute__((availability(watchos,unavailable))) = 1 << 28, } __attribute__((availability(ios,introduced=4.0))) __attribute__((availability(watchos,unavailable)));
88
88
  typedef NS_OPTIONS(NSUInteger, UIViewKeyframeAnimationOptions) { UIViewKeyframeAnimationOptionLayoutSubviews = UIViewAnimationOptionLayoutSubviews, UIViewKeyframeAnimationOptionAllowUserInteraction = UIViewAnimationOptionAllowUserInteraction, UIViewKeyframeAnimationOptionBeginFromCurrentState = UIViewAnimationOptionBeginFromCurrentState, UIViewKeyframeAnimationOptionRepeat = UIViewAnimationOptionRepeat, UIViewKeyframeAnimationOptionAutoreverse = UIViewAnimationOptionAutoreverse, UIViewKeyframeAnimationOptionOverrideInheritedDuration = UIViewAnimationOptionOverrideInheritedDuration, UIViewKeyframeAnimationOptionOverrideInheritedOptions = UIViewAnimationOptionOverrideInheritedOptions, UIViewKeyframeAnimationOptionCalculationModeLinear = 0 << 10, UIViewKeyframeAnimationOptionCalculationModeDiscrete = 1 << 10, UIViewKeyframeAnimationOptionCalculationModePaced = 2 << 10, UIViewKeyframeAnimationOptionCalculationModeCubic = 3 << 10, UIViewKeyframeAnimationOptionCalculationModeCubicPaced = 4 << 10 } __attribute__((availability(ios,introduced=7.0))) __attribute__((availability(watchos,unavailable)));
89
- typedef NS_ENUM(NSInteger, UIViewAnimatingPosition) { UIViewAnimatingPositionEnd, UIViewAnimatingPositionStart, UIViewAnimatingPositionCurrent, } __attribute__((availability(ios,introduced=10.0))) __attribute__((availability(watchos,unavailable)));
90
- typedef NS_ENUM(NSInteger, UISemanticContentAttribute) { UISemanticContentAttributeUnspecified = 0, UISemanticContentAttributePlayback, UISemanticContentAttributeSpatial, UISemanticContentAttributeForceLeftToRight, UISemanticContentAttributeForceRightToLeft } __attribute__((availability(ios,introduced=9.0))) __attribute__((availability(watchos,unavailable)));
91
89
  typedef NSString * UIActivityType NS_TYPED_EXTENSIBLE_ENUM __attribute__((availability(ios,introduced=6.0))) __attribute__((availability(watchos,unavailable)));
92
90
  typedef void (^UIActivityViewControllerCompletionWithItemsHandler)(UIActivityType __nullable activityType, BOOL completed, NSArray * __nullable returnedItems, NSError * __nullable activityError) __attribute__((availability(ios,introduced=8.0))) __attribute__((availability(watchos,unavailable)));
93
91
  typedef NS_OPTIONS(NSUInteger, UIPopoverArrowDirection) { UIPopoverArrowDirectionUp = 1UL << 0, UIPopoverArrowDirectionDown = 1UL << 1, UIPopoverArrowDirectionLeft = 1UL << 2, UIPopoverArrowDirectionRight = 1UL << 3, UIPopoverArrowDirectionAny = UIPopoverArrowDirectionUp | UIPopoverArrowDirectionDown | UIPopoverArrowDirectionLeft | UIPopoverArrowDirectionRight, UIPopoverArrowDirectionUnknown = NSUIntegerMax } __attribute__((availability(watchos,unavailable)));
@@ -0,0 +1,14 @@
1
+ // generated by scripts/generate/swift-uikit-enums.py from the
2
+ // iOS 27.1 UIKit symbol graph and its clang integer constants.
3
+ #pragma once
4
+ #pragma clang system_header
5
+ #include <stdbool.h>
6
+ #include <stdint.h>
7
+
8
+ typedef enum __attribute__((enum_extensibility(open))) UIInterfaceOrientation : intptr_t {
9
+ UIInterfaceOrientationLandscapeLeft __attribute__((swift_name("UIInterfaceOrientation.landscapeLeft"))) = 4,
10
+ UIInterfaceOrientationLandscapeRight __attribute__((swift_name("UIInterfaceOrientation.landscapeRight"))) = 3,
11
+ UIInterfaceOrientationPortrait __attribute__((swift_name("UIInterfaceOrientation.portrait"))) = 1,
12
+ UIInterfaceOrientationPortraitUpsideDown __attribute__((swift_name("UIInterfaceOrientation.portraitUpsideDown"))) = 2,
13
+ UIInterfaceOrientationUnknown __attribute__((swift_name("UIInterfaceOrientation.unknown"))) = 0,
14
+ } UIInterfaceOrientation;
@@ -0,0 +1,12 @@
1
+ // generated by scripts/generate/swift-uikit-enums.py from the
2
+ // iOS 27.1 UIKit symbol graph and its clang integer constants.
3
+ #pragma once
4
+ #pragma clang system_header
5
+ #include <stdbool.h>
6
+ #include <stdint.h>
7
+
8
+ typedef enum __attribute__((enum_extensibility(open))) UIBaselineAdjustment : intptr_t {
9
+ UIBaselineAdjustmentAlignBaselines __attribute__((swift_name("UIBaselineAdjustment.alignBaselines"))) = 0,
10
+ UIBaselineAdjustmentAlignCenters __attribute__((swift_name("UIBaselineAdjustment.alignCenters"))) = 1,
11
+ UIBaselineAdjustmentNone __attribute__((swift_name("UIBaselineAdjustment.none"))) = 2,
12
+ } UIBaselineAdjustment;
@@ -0,0 +1,14 @@
1
+ // generated by scripts/generate/swift-uikit-enums.py from the
2
+ // iOS 27.1 UIKit symbol graph and its clang integer constants.
3
+ #pragma once
4
+ #pragma clang system_header
5
+ #include <stdbool.h>
6
+ #include <stdint.h>
7
+
8
+ typedef enum __attribute__((enum_extensibility(open))) UISemanticContentAttribute : intptr_t {
9
+ UISemanticContentAttributeForceLeftToRight __attribute__((swift_name("UISemanticContentAttribute.forceLeftToRight"))) = 3,
10
+ UISemanticContentAttributeForceRightToLeft __attribute__((swift_name("UISemanticContentAttribute.forceRightToLeft"))) = 4,
11
+ UISemanticContentAttributePlayback __attribute__((swift_name("UISemanticContentAttribute.playback"))) = 1,
12
+ UISemanticContentAttributeSpatial __attribute__((swift_name("UISemanticContentAttribute.spatial"))) = 2,
13
+ UISemanticContentAttributeUnspecified __attribute__((swift_name("UISemanticContentAttribute.unspecified"))) = 0,
14
+ } UISemanticContentAttribute;
@@ -0,0 +1,12 @@
1
+ // generated by scripts/generate/swift-uikit-enums.py from the
2
+ // iOS 27.1 UIKit symbol graph and its clang integer constants.
3
+ #pragma once
4
+ #pragma clang system_header
5
+ #include <stdbool.h>
6
+ #include <stdint.h>
7
+
8
+ typedef enum __attribute__((enum_extensibility(open))) UIViewAnimatingPosition : intptr_t {
9
+ UIViewAnimatingPositionCurrent __attribute__((swift_name("UIViewAnimatingPosition.current"))) = 2,
10
+ UIViewAnimatingPositionEnd __attribute__((swift_name("UIViewAnimatingPosition.end"))) = 0,
11
+ UIViewAnimatingPositionStart __attribute__((swift_name("UIViewAnimatingPosition.start"))) = 1,
12
+ } UIViewAnimatingPosition;
@@ -0,0 +1,16 @@
1
+ // generated by scripts/generate/swift-uikit-enums.py from the
2
+ // iOS 27.1 UIKit symbol graph and its clang integer constants.
3
+ #pragma once
4
+ #pragma clang system_header
5
+ #include <stdbool.h>
6
+ #include <stdint.h>
7
+
8
+ typedef enum __attribute__((enum_extensibility(open))) UIModalTransitionStyle : intptr_t {
9
+ UIModalTransitionStyleCoverVertical __attribute__((swift_name("UIModalTransitionStyle.coverVertical"))) = 0,
10
+ UIModalTransitionStyleCrossDissolve __attribute__((swift_name("UIModalTransitionStyle.crossDissolve"))) = 2,
11
+ UIModalTransitionStyleFlipHorizontal __attribute__((swift_name("UIModalTransitionStyle.flipHorizontal"))) = 1,
12
+ UIModalTransitionStylePartialCurl __attribute__((swift_name("UIModalTransitionStyle.partialCurl"))) = 3,
13
+ } UIModalTransitionStyle;
14
+
15
+ // the umbrella re-export stays so direct importers keep the whole framework.
16
+ #import <UIKit/UIKit.h>
@@ -0,0 +1,2 @@
1
+ #pragma once
2
+ #import <UIKit/UIKit.h>