@nativescript/core 8.9.0-alpha.3 → 8.9.0-next-01-13-2025-12740325729

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 (446) hide show
  1. package/accessibility/accessibility-properties.js +0 -1
  2. package/accessibility/accessibility-properties.js.map +1 -1
  3. package/animation-frame/index.d.ts +3 -17
  4. package/core-types/index.d.ts +2 -2
  5. package/core-types/index.js +3 -3
  6. package/core-types/index.js.map +1 -1
  7. package/css/css-tree-parser.js +17 -21
  8. package/css/parser.js +2 -1
  9. package/css/parser.js.map +1 -1
  10. package/data/observable/index.d.ts +1 -0
  11. package/data/observable/index.js +1 -0
  12. package/data/observable/index.js.map +1 -1
  13. package/debugger/devtools-elements.d.ts +5 -23
  14. package/debugger/dom-node.d.ts +20 -23
  15. package/file-system/file-system-access.ios.js +2 -2
  16. package/file-system/file-system-access.ios.js.map +1 -1
  17. package/file-system/index.d.ts +95 -370
  18. package/fps-meter/index.d.ts +7 -24
  19. package/globals/index.d.ts +19 -4
  20. package/globals/index.js +5 -3
  21. package/globals/index.js.map +1 -1
  22. package/http/index.d.ts +73 -149
  23. package/image-source/index.android.d.ts +3 -2
  24. package/image-source/index.android.js +13 -6
  25. package/image-source/index.android.js.map +1 -1
  26. package/image-source/index.ios.d.ts +3 -2
  27. package/image-source/index.ios.js +10 -3
  28. package/image-source/index.ios.js.map +1 -1
  29. package/index.d.ts +6 -23
  30. package/matrix/index.d.ts +5 -32
  31. package/module-name-resolver/index.d.ts +13 -21
  32. package/module-name-resolver/qualifier-matcher/index.d.ts +6 -12
  33. package/package.json +1 -1
  34. package/platform/index.d.ts +0 -26
  35. package/profiling/index.d.ts +26 -153
  36. package/text/formatted-string.d.ts +1 -1
  37. package/text/span.d.ts +1 -1
  38. package/trace/index.d.ts +105 -131
  39. package/ui/action-bar/index.android.d.ts +1 -0
  40. package/ui/action-bar/index.android.js +3 -0
  41. package/ui/action-bar/index.android.js.map +1 -1
  42. package/ui/action-bar/index.ios.d.ts +7 -2
  43. package/ui/action-bar/index.ios.js +120 -19
  44. package/ui/action-bar/index.ios.js.map +1 -1
  45. package/ui/animation/animation-common.d.ts +1 -8
  46. package/ui/animation/animation-common.js +0 -8
  47. package/ui/animation/animation-common.js.map +1 -1
  48. package/ui/animation/animation-interfaces.d.ts +11 -0
  49. package/ui/animation/animation-interfaces.js +12 -1
  50. package/ui/animation/animation-interfaces.js.map +1 -1
  51. package/ui/animation/index.android.d.ts +2 -2
  52. package/ui/animation/index.android.js +2 -2
  53. package/ui/animation/index.android.js.map +1 -1
  54. package/ui/animation/index.ios.d.ts +2 -2
  55. package/ui/animation/index.ios.js +4 -4
  56. package/ui/animation/index.ios.js.map +1 -1
  57. package/ui/animation/keyframe-animation.d.ts +67 -118
  58. package/ui/builder/binding-builder.d.ts +12 -15
  59. package/ui/builder/index.d.ts +27 -69
  60. package/ui/button/index.android.d.ts +1 -1
  61. package/ui/button/index.android.js +17 -15
  62. package/ui/button/index.android.js.map +1 -1
  63. package/ui/button/index.ios.js +8 -2
  64. package/ui/button/index.ios.js.map +1 -1
  65. package/ui/content-view/index.d.ts +23 -4
  66. package/ui/core/control-state-change/index.android.d.ts +2 -2
  67. package/ui/core/control-state-change/index.android.js +1 -1
  68. package/ui/core/control-state-change/index.android.js.map +1 -1
  69. package/ui/core/control-state-change/index.ios.d.ts +3 -7
  70. package/ui/core/control-state-change/index.ios.js +19 -36
  71. package/ui/core/control-state-change/index.ios.js.map +1 -1
  72. package/ui/core/view/index.android.d.ts +2 -7
  73. package/ui/core/view/index.android.js +3 -4
  74. package/ui/core/view/index.android.js.map +1 -1
  75. package/ui/core/view/index.ios.d.ts +3 -13
  76. package/ui/core/view/index.ios.js +16 -8
  77. package/ui/core/view/index.ios.js.map +1 -1
  78. package/ui/core/view/view-common.d.ts +11 -15
  79. package/ui/core/view/view-common.js +23 -15
  80. package/ui/core/view/view-common.js.map +1 -1
  81. package/ui/core/view/view-helper/index.ios.d.ts +3 -18
  82. package/ui/core/view/view-helper/index.ios.js.map +1 -1
  83. package/ui/core/view-base/index.d.ts +107 -4
  84. package/ui/core/view-base/index.js +55 -7
  85. package/ui/core/view-base/index.js.map +1 -1
  86. package/ui/core/weak-event-listener/index.d.ts +2 -18
  87. package/ui/date-picker/date-picker-common.d.ts +1 -0
  88. package/ui/date-picker/date-picker-common.js +1 -0
  89. package/ui/date-picker/date-picker-common.js.map +1 -1
  90. package/ui/editable-text-base/editable-text-base-common.d.ts +1 -2
  91. package/ui/editable-text-base/editable-text-base-common.js +13 -7
  92. package/ui/editable-text-base/editable-text-base-common.js.map +1 -1
  93. package/ui/frame/frame-common.d.ts +3 -2
  94. package/ui/frame/frame-common.js +6 -6
  95. package/ui/frame/frame-common.js.map +1 -1
  96. package/ui/gestures/gestures-common.d.ts +22 -0
  97. package/ui/gestures/gestures-common.js +22 -0
  98. package/ui/gestures/gestures-common.js.map +1 -1
  99. package/ui/html-view/html-view-common.d.ts +1 -0
  100. package/ui/html-view/html-view-common.js.map +1 -1
  101. package/ui/image/image-common.d.ts +2 -0
  102. package/ui/image/image-common.js +3 -1
  103. package/ui/image/image-common.js.map +1 -1
  104. package/ui/index.d.ts +3 -1
  105. package/ui/index.js +1 -1
  106. package/ui/index.js.map +1 -1
  107. package/ui/layouts/flexbox-layout/index.ios.js.map +1 -1
  108. package/ui/layouts/index.d.ts +2 -1
  109. package/ui/layouts/layout-base-common.d.ts +0 -1
  110. package/ui/layouts/layout-base-common.js +1 -8
  111. package/ui/layouts/layout-base-common.js.map +1 -1
  112. package/ui/layouts/stack-layout/index.ios.js.map +1 -1
  113. package/ui/list-picker/list-picker-common.d.ts +1 -0
  114. package/ui/list-picker/list-picker-common.js +1 -0
  115. package/ui/list-picker/list-picker-common.js.map +1 -1
  116. package/ui/placeholder/index.android.d.ts +1 -1
  117. package/ui/placeholder/index.d.ts +8 -42
  118. package/ui/proxy-view-container/index.d.ts +2 -0
  119. package/ui/proxy-view-container/index.js +2 -0
  120. package/ui/proxy-view-container/index.js.map +1 -1
  121. package/ui/repeater/index.d.ts +2 -0
  122. package/ui/repeater/index.js +2 -0
  123. package/ui/repeater/index.js.map +1 -1
  124. package/ui/search-bar/search-bar-common.js.map +1 -1
  125. package/ui/slider/slider-common.d.ts +1 -0
  126. package/ui/slider/slider-common.js +1 -0
  127. package/ui/slider/slider-common.js.map +1 -1
  128. package/ui/styling/background.ios.d.ts +1 -15
  129. package/ui/styling/background.ios.js +52 -54
  130. package/ui/styling/background.ios.js.map +1 -1
  131. package/ui/styling/converters.d.ts +2 -2
  132. package/ui/styling/style/index.d.ts +3 -1
  133. package/ui/styling/style/index.js.map +1 -1
  134. package/ui/styling/style-properties.d.ts +81 -100
  135. package/ui/styling/style-properties.js.map +1 -1
  136. package/ui/styling/style-scope.d.ts +79 -48
  137. package/ui/switch/switch-common.js +4 -4
  138. package/ui/switch/switch-common.js.map +1 -1
  139. package/ui/text-base/formatted-string.d.ts +36 -73
  140. package/ui/text-base/index.android.js +2 -11
  141. package/ui/text-base/index.android.js.map +1 -1
  142. package/ui/text-base/span.d.ts +36 -81
  143. package/ui/text-base/text-base-common.d.ts +2 -0
  144. package/ui/text-base/text-base-common.js +6 -0
  145. package/ui/text-base/text-base-common.js.map +1 -1
  146. package/ui/text-field/text-field-common.js.map +1 -1
  147. package/ui/text-view/index.android.d.ts +0 -1
  148. package/ui/text-view/index.android.js +0 -1
  149. package/ui/text-view/index.android.js.map +1 -1
  150. package/ui/text-view/index.ios.d.ts +0 -3
  151. package/ui/text-view/index.ios.js +8 -64
  152. package/ui/text-view/index.ios.js.map +1 -1
  153. package/ui/text-view/text-view-common.d.ts +0 -26
  154. package/ui/text-view/text-view-common.js +0 -34
  155. package/ui/text-view/text-view-common.js.map +1 -1
  156. package/ui/time-picker/time-picker-common.d.ts +1 -0
  157. package/ui/time-picker/time-picker-common.js +1 -0
  158. package/ui/time-picker/time-picker-common.js.map +1 -1
  159. package/ui/utils.ios.d.ts +1 -2
  160. package/ui/utils.ios.js.map +1 -1
  161. package/ui/web-view/web-view-common.d.ts +1 -1
  162. package/utils/debug.d.ts +17 -61
  163. package/utils/ios/index.js +4 -4
  164. package/utils/ios/index.js.map +1 -1
  165. package/utils/lazy.d.ts +0 -5
  166. package/utils/macrotask-scheduler.d.ts +1 -5
  167. package/utils/native-helper.ios.js +1 -0
  168. package/utils/native-helper.ios.js.map +1 -1
  169. package/utils/types.d.ts +23 -115
  170. package/xml/index.d.ts +44 -105
  171. package/xml/index.js +1 -1
  172. package/xml/index.js.map +1 -1
  173. package/accessibility/accessibility-service.d.ts +0 -10
  174. package/accessibility/font-scale.d.ts +0 -9
  175. package/accessibility/index.d.ts +0 -37
  176. package/animation-frame/animation-native.d.ts +0 -4
  177. package/application/application.d.ts +0 -194
  178. package/application/index.d.ts +0 -2
  179. package/application-settings/index.d.ts +0 -70
  180. package/cli-hooks/before-checkForChanges.js +0 -60
  181. package/cli-hooks/postinstall.js +0 -2
  182. package/cli-hooks/preuninstall.js +0 -2
  183. package/color/index.d.ts +0 -206
  184. package/connectivity/index.d.ts +0 -52
  185. package/css/lib/parse/index.js +0 -602
  186. package/css/package.json +0 -36
  187. package/css/reworkcss.d.ts +0 -47
  188. package/css/reworkcss.js +0 -1
  189. package/css-value/package.json +0 -23
  190. package/css-value/reworkcss-value.d.ts +0 -8
  191. package/css-value/reworkcss-value.js +0 -113
  192. package/debugger/css-agent.d.ts +0 -59
  193. package/fetch/index.js +0 -539
  194. package/file-system/file-system-access.d.ts +0 -441
  195. package/fps-meter/fps-native.d.ts +0 -24
  196. package/global-types.d.ts +0 -393
  197. package/http/http-request/index.d.ts +0 -3
  198. package/image-asset/index.d.ts +0 -17
  199. package/image-source/index.d.ts +0 -345
  200. package/js-libs/easysax/easysax.d.ts +0 -8
  201. package/js-libs/easysax/easysax.js +0 -782
  202. package/js-libs/easysax/package.json +0 -35
  203. package/platform/device/index.d.ts +0 -70
  204. package/platform/screen/index.d.ts +0 -48
  205. package/platforms/android/native-api-usage.json +0 -32
  206. package/platforms/android/res/values/ids.xml +0 -4
  207. package/platforms/android/widgets-release.aar +0 -0
  208. package/platforms/android/winter_cg-release.aar +0 -0
  209. package/platforms/ios/NSCWinterCG.xcframework/Info.plist +0 -102
  210. package/platforms/ios/NSCWinterCG.xcframework/ios-arm64/NSCWinterCG.framework/Headers/NSCCrypto.h +0 -79
  211. package/platforms/ios/NSCWinterCG.xcframework/ios-arm64/NSCWinterCG.framework/Headers/NSCWinterCG.h +0 -20
  212. package/platforms/ios/NSCWinterCG.xcframework/ios-arm64/NSCWinterCG.framework/Headers/NSString+WinterCG.h +0 -21
  213. package/platforms/ios/NSCWinterCG.xcframework/ios-arm64/NSCWinterCG.framework/Info.plist +0 -0
  214. package/platforms/ios/NSCWinterCG.xcframework/ios-arm64/NSCWinterCG.framework/Modules/module.modulemap +0 -6
  215. package/platforms/ios/NSCWinterCG.xcframework/ios-arm64/NSCWinterCG.framework/NSCWinterCG +0 -0
  216. package/platforms/ios/NSCWinterCG.xcframework/ios-arm64/dSYMs/NSCWinterCG.framework.dSYM/Contents/Info.plist +0 -20
  217. package/platforms/ios/NSCWinterCG.xcframework/ios-arm64/dSYMs/NSCWinterCG.framework.dSYM/Contents/Resources/DWARF/NSCWinterCG +0 -0
  218. package/platforms/ios/NSCWinterCG.xcframework/ios-arm64/dSYMs/NSCWinterCG.framework.dSYM/Contents/Resources/Relocations/aarch64/NSCWinterCG.yml +0 -40
  219. package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterCG.framework/Headers/NSCCrypto.h +0 -79
  220. package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterCG.framework/Headers/NSCWinterCG.h +0 -20
  221. package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterCG.framework/Headers/NSString+WinterCG.h +0 -21
  222. package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterCG.framework/Modules/module.modulemap +0 -6
  223. package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterCG.framework/NSCWinterCG +0 -0
  224. package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterCG.framework/Resources/Info.plist +0 -52
  225. package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterCG.framework/Versions/A/Headers/NSCCrypto.h +0 -79
  226. package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterCG.framework/Versions/A/Headers/NSCWinterCG.h +0 -20
  227. package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterCG.framework/Versions/A/Headers/NSString+WinterCG.h +0 -21
  228. package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterCG.framework/Versions/A/Modules/module.modulemap +0 -6
  229. package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterCG.framework/Versions/A/NSCWinterCG +0 -0
  230. package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterCG.framework/Versions/A/Resources/Info.plist +0 -52
  231. package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterCG.framework/Versions/Current/NSCWinterCG +0 -0
  232. package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-maccatalyst/dSYMs/NSCWinterCG.framework.dSYM/Contents/Info.plist +0 -20
  233. package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-maccatalyst/dSYMs/NSCWinterCG.framework.dSYM/Contents/Resources/DWARF/NSCWinterCG +0 -0
  234. package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-maccatalyst/dSYMs/NSCWinterCG.framework.dSYM/Contents/Resources/Relocations/aarch64/NSCWinterCG.yml +0 -40
  235. package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-maccatalyst/dSYMs/NSCWinterCG.framework.dSYM/Contents/Resources/Relocations/x86_64/NSCWinterCG.yml +0 -40
  236. package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-simulator/NSCWinterCG.framework/Headers/NSCCrypto.h +0 -79
  237. package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-simulator/NSCWinterCG.framework/Headers/NSCWinterCG.h +0 -20
  238. package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-simulator/NSCWinterCG.framework/Headers/NSString+WinterCG.h +0 -21
  239. package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-simulator/NSCWinterCG.framework/Info.plist +0 -0
  240. package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-simulator/NSCWinterCG.framework/Modules/module.modulemap +0 -6
  241. package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-simulator/NSCWinterCG.framework/NSCWinterCG +0 -0
  242. package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-simulator/NSCWinterCG.framework/_CodeSignature/CodeResources +0 -146
  243. package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-simulator/dSYMs/NSCWinterCG.framework.dSYM/Contents/Info.plist +0 -20
  244. package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-simulator/dSYMs/NSCWinterCG.framework.dSYM/Contents/Resources/DWARF/NSCWinterCG +0 -0
  245. package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-simulator/dSYMs/NSCWinterCG.framework.dSYM/Contents/Resources/Relocations/aarch64/NSCWinterCG.yml +0 -40
  246. package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-simulator/dSYMs/NSCWinterCG.framework.dSYM/Contents/Resources/Relocations/x86_64/NSCWinterCG.yml +0 -40
  247. package/platforms/ios/NSCWinterCG.xcframework/xros-arm64/NSCWinterCG.framework/Headers/NSCCrypto.h +0 -79
  248. package/platforms/ios/NSCWinterCG.xcframework/xros-arm64/NSCWinterCG.framework/Headers/NSCWinterCG.h +0 -20
  249. package/platforms/ios/NSCWinterCG.xcframework/xros-arm64/NSCWinterCG.framework/Headers/NSString+WinterCG.h +0 -21
  250. package/platforms/ios/NSCWinterCG.xcframework/xros-arm64/NSCWinterCG.framework/Info.plist +0 -0
  251. package/platforms/ios/NSCWinterCG.xcframework/xros-arm64/NSCWinterCG.framework/Modules/module.modulemap +0 -6
  252. package/platforms/ios/NSCWinterCG.xcframework/xros-arm64/NSCWinterCG.framework/NSCWinterCG +0 -0
  253. package/platforms/ios/NSCWinterCG.xcframework/xros-arm64/dSYMs/NSCWinterCG.framework.dSYM/Contents/Info.plist +0 -20
  254. package/platforms/ios/NSCWinterCG.xcframework/xros-arm64/dSYMs/NSCWinterCG.framework.dSYM/Contents/Resources/DWARF/NSCWinterCG +0 -0
  255. package/platforms/ios/NSCWinterCG.xcframework/xros-arm64/dSYMs/NSCWinterCG.framework.dSYM/Contents/Resources/Relocations/aarch64/NSCWinterCG.yml +0 -40
  256. package/platforms/ios/NSCWinterCG.xcframework/xros-arm64_x86_64-simulator/NSCWinterCG.framework/Headers/NSCCrypto.h +0 -79
  257. package/platforms/ios/NSCWinterCG.xcframework/xros-arm64_x86_64-simulator/NSCWinterCG.framework/Headers/NSCWinterCG.h +0 -20
  258. package/platforms/ios/NSCWinterCG.xcframework/xros-arm64_x86_64-simulator/NSCWinterCG.framework/Headers/NSString+WinterCG.h +0 -21
  259. package/platforms/ios/NSCWinterCG.xcframework/xros-arm64_x86_64-simulator/NSCWinterCG.framework/Info.plist +0 -0
  260. package/platforms/ios/NSCWinterCG.xcframework/xros-arm64_x86_64-simulator/NSCWinterCG.framework/Modules/module.modulemap +0 -6
  261. package/platforms/ios/NSCWinterCG.xcframework/xros-arm64_x86_64-simulator/NSCWinterCG.framework/NSCWinterCG +0 -0
  262. package/platforms/ios/NSCWinterCG.xcframework/xros-arm64_x86_64-simulator/NSCWinterCG.framework/_CodeSignature/CodeResources +0 -146
  263. package/platforms/ios/NSCWinterCG.xcframework/xros-arm64_x86_64-simulator/dSYMs/NSCWinterCG.framework.dSYM/Contents/Info.plist +0 -20
  264. package/platforms/ios/NSCWinterCG.xcframework/xros-arm64_x86_64-simulator/dSYMs/NSCWinterCG.framework.dSYM/Contents/Resources/DWARF/NSCWinterCG +0 -0
  265. package/platforms/ios/NSCWinterCG.xcframework/xros-arm64_x86_64-simulator/dSYMs/NSCWinterCG.framework.dSYM/Contents/Resources/Relocations/aarch64/NSCWinterCG.yml +0 -40
  266. package/platforms/ios/NSCWinterCG.xcframework/xros-arm64_x86_64-simulator/dSYMs/NSCWinterCG.framework.dSYM/Contents/Resources/Relocations/x86_64/NSCWinterCG.yml +0 -40
  267. package/platforms/ios/TNSWidgets.xcframework/Info.plist +0 -102
  268. package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Headers/NSCCrypto.h +0 -60
  269. package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Headers/NSData+Async.h +0 -24
  270. package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Headers/NSFileHandle+Async.h +0 -22
  271. package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Headers/NSString+Async.h +0 -25
  272. package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Headers/TNSLabel.h +0 -16
  273. package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Headers/TNSProcess.h +0 -29
  274. package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Headers/TNSWidgets.h +0 -25
  275. package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Headers/UIImage+TNSBlocks.h +0 -26
  276. package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Headers/UIView+PassThroughParent.h +0 -17
  277. package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Info.plist +0 -0
  278. package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Modules/module.modulemap +0 -6
  279. package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/PrivateHeaders/NSObject+Swizzling.h +0 -17
  280. package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/PrivateHeaders/UIView+PropertyBag.h +0 -18
  281. package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/TNSWidgets +0 -0
  282. package/platforms/ios/TNSWidgets.xcframework/ios-arm64/dSYMs/TNSWidgets.framework.dSYM/Contents/Info.plist +0 -20
  283. package/platforms/ios/TNSWidgets.xcframework/ios-arm64/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/DWARF/TNSWidgets +0 -0
  284. package/platforms/ios/TNSWidgets.xcframework/ios-arm64/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/Relocations/aarch64/TNSWidgets.yml +0 -82
  285. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/NSCCrypto.h +0 -60
  286. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/NSData+Async.h +0 -24
  287. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/NSFileHandle+Async.h +0 -22
  288. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/NSString+Async.h +0 -25
  289. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/TNSLabel.h +0 -16
  290. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/TNSProcess.h +0 -29
  291. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/TNSWidgets.h +0 -25
  292. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/UIImage+TNSBlocks.h +0 -26
  293. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/UIView+PassThroughParent.h +0 -17
  294. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Modules/module.modulemap +0 -6
  295. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/PrivateHeaders/NSObject+Swizzling.h +0 -17
  296. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/PrivateHeaders/UIView+PropertyBag.h +0 -18
  297. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Resources/Info.plist +0 -52
  298. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/TNSWidgets +0 -0
  299. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Headers/NSCCrypto.h +0 -60
  300. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Headers/NSData+Async.h +0 -24
  301. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Headers/NSFileHandle+Async.h +0 -22
  302. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Headers/NSString+Async.h +0 -25
  303. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Headers/TNSLabel.h +0 -16
  304. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Headers/TNSProcess.h +0 -29
  305. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Headers/TNSWidgets.h +0 -25
  306. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Headers/UIImage+TNSBlocks.h +0 -26
  307. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Headers/UIView+PassThroughParent.h +0 -17
  308. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Modules/module.modulemap +0 -6
  309. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/PrivateHeaders/NSObject+Swizzling.h +0 -17
  310. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/PrivateHeaders/UIView+PropertyBag.h +0 -18
  311. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Resources/Info.plist +0 -52
  312. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/TNSWidgets +0 -0
  313. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/Current/TNSWidgets +0 -0
  314. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/dSYMs/TNSWidgets.framework.dSYM/Contents/Info.plist +0 -20
  315. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/DWARF/TNSWidgets +0 -0
  316. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/Relocations/aarch64/TNSWidgets.yml +0 -82
  317. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/Relocations/x86_64/TNSWidgets.yml +0 -82
  318. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Headers/NSCCrypto.h +0 -60
  319. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Headers/NSData+Async.h +0 -24
  320. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Headers/NSFileHandle+Async.h +0 -22
  321. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Headers/NSString+Async.h +0 -25
  322. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Headers/TNSLabel.h +0 -16
  323. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Headers/TNSProcess.h +0 -29
  324. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Headers/TNSWidgets.h +0 -25
  325. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Headers/UIImage+TNSBlocks.h +0 -26
  326. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Headers/UIView+PassThroughParent.h +0 -17
  327. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Info.plist +0 -0
  328. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Modules/module.modulemap +0 -6
  329. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/PrivateHeaders/NSObject+Swizzling.h +0 -17
  330. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/PrivateHeaders/UIView+PropertyBag.h +0 -18
  331. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/TNSWidgets +0 -0
  332. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/_CodeSignature/CodeResources +0 -223
  333. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/dSYMs/TNSWidgets.framework.dSYM/Contents/Info.plist +0 -20
  334. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/DWARF/TNSWidgets +0 -0
  335. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/Relocations/aarch64/TNSWidgets.yml +0 -82
  336. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/Relocations/x86_64/TNSWidgets.yml +0 -82
  337. package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/Headers/NSCCrypto.h +0 -60
  338. package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/Headers/NSData+Async.h +0 -24
  339. package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/Headers/NSFileHandle+Async.h +0 -22
  340. package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/Headers/NSString+Async.h +0 -25
  341. package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/Headers/TNSLabel.h +0 -16
  342. package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/Headers/TNSProcess.h +0 -29
  343. package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/Headers/TNSWidgets.h +0 -25
  344. package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/Headers/UIImage+TNSBlocks.h +0 -26
  345. package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/Headers/UIView+PassThroughParent.h +0 -17
  346. package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/Info.plist +0 -0
  347. package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/Modules/module.modulemap +0 -6
  348. package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/PrivateHeaders/NSObject+Swizzling.h +0 -17
  349. package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/PrivateHeaders/UIView+PropertyBag.h +0 -18
  350. package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/TNSWidgets +0 -0
  351. package/platforms/ios/TNSWidgets.xcframework/xros-arm64/dSYMs/TNSWidgets.framework.dSYM/Contents/Info.plist +0 -20
  352. package/platforms/ios/TNSWidgets.xcframework/xros-arm64/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/DWARF/TNSWidgets +0 -0
  353. package/platforms/ios/TNSWidgets.xcframework/xros-arm64/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/Relocations/aarch64/TNSWidgets.yml +0 -82
  354. package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/Headers/NSCCrypto.h +0 -60
  355. package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/Headers/NSData+Async.h +0 -24
  356. package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/Headers/NSFileHandle+Async.h +0 -22
  357. package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/Headers/NSString+Async.h +0 -25
  358. package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/Headers/TNSLabel.h +0 -16
  359. package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/Headers/TNSProcess.h +0 -29
  360. package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/Headers/TNSWidgets.h +0 -25
  361. package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/Headers/UIImage+TNSBlocks.h +0 -26
  362. package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/Headers/UIView+PassThroughParent.h +0 -17
  363. package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/Info.plist +0 -0
  364. package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/Modules/module.modulemap +0 -6
  365. package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/PrivateHeaders/NSObject+Swizzling.h +0 -17
  366. package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/PrivateHeaders/UIView+PropertyBag.h +0 -18
  367. package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/TNSWidgets +0 -0
  368. package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/_CodeSignature/CodeResources +0 -223
  369. package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/dSYMs/TNSWidgets.framework.dSYM/Contents/Info.plist +0 -20
  370. package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/DWARF/TNSWidgets +0 -0
  371. package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/Relocations/aarch64/TNSWidgets.yml +0 -82
  372. package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/Relocations/x86_64/TNSWidgets.yml +0 -82
  373. package/platforms/ios/native-api-usage.json +0 -41
  374. package/platforms/ios/src/NativeScriptEmbedder.h +0 -31
  375. package/platforms/ios/src/NativeScriptEmbedder.m +0 -43
  376. package/platforms/ios/src/NativeScriptMainWindow.swift +0 -179
  377. package/platforms/ios/src/NativeScriptUtils.h +0 -16
  378. package/platforms/ios/src/NativeScriptUtils.m +0 -137
  379. package/platforms/ios/src/UIView+NativeScript.h +0 -15
  380. package/platforms/ios/src/UIView+NativeScript.m +0 -150
  381. package/platforms/ios/src/module.modulemap +0 -14
  382. package/platforms/ios/typings/objc!MaterialComponents.d.ts +0 -808
  383. package/platforms/ios/typings/objc!NativeScriptUtils.d.ts +0 -18
  384. package/references.d.ts +0 -10
  385. package/text/index.d.ts +0 -36
  386. package/timer/index.d.ts +0 -27
  387. package/ui/action-bar/index.d.ts +0 -271
  388. package/ui/activity-indicator/index.d.ts +0 -21
  389. package/ui/animation/index.d.ts +0 -152
  390. package/ui/button/index.d.ts +0 -44
  391. package/ui/core/control-state-change/index.d.ts +0 -15
  392. package/ui/core/view/index.d.ts +0 -992
  393. package/ui/core/view/view-helper/index.d.ts +0 -76
  394. package/ui/date-picker/index.d.ts +0 -65
  395. package/ui/dialogs/index.d.ts +0 -311
  396. package/ui/editable-text-base/index.d.ts +0 -100
  397. package/ui/embedding/index.d.ts +0 -10
  398. package/ui/frame/fragment.d.ts +0 -5
  399. package/ui/frame/fragment.transitions.d.ts +0 -43
  400. package/ui/frame/index.d.ts +0 -553
  401. package/ui/frame/transition-definitions.android.d.ts +0 -54
  402. package/ui/gestures/index.d.ts +0 -59
  403. package/ui/html-view/index.d.ts +0 -27
  404. package/ui/image/index.d.ts +0 -77
  405. package/ui/image/symbol-effects.d.ts +0 -13
  406. package/ui/image-cache/index.d.ts +0 -147
  407. package/ui/label/index.d.ts +0 -21
  408. package/ui/layouts/absolute-layout/index.d.ts +0 -40
  409. package/ui/layouts/dock-layout/index.d.ts +0 -35
  410. package/ui/layouts/flexbox-layout/index.d.ts +0 -66
  411. package/ui/layouts/grid-layout/index.d.ts +0 -182
  412. package/ui/layouts/layout-base.d.ts +0 -105
  413. package/ui/layouts/root-layout/index.d.ts +0 -45
  414. package/ui/layouts/stack-layout/index.d.ts +0 -19
  415. package/ui/layouts/wrap-layout/index.d.ts +0 -43
  416. package/ui/list-picker/index.d.ts +0 -32
  417. package/ui/list-view/index.d.ts +0 -208
  418. package/ui/page/index.d.ts +0 -212
  419. package/ui/progress/index.d.ts +0 -37
  420. package/ui/scroll-view/index.d.ts +0 -89
  421. package/ui/search-bar/index.d.ts +0 -89
  422. package/ui/segmented-bar/index.d.ts +0 -106
  423. package/ui/slider/index.d.ts +0 -72
  424. package/ui/styling/background.d.ts +0 -93
  425. package/ui/styling/font.d.ts +0 -62
  426. package/ui/switch/index.d.ts +0 -35
  427. package/ui/tab-view/index.d.ts +0 -175
  428. package/ui/text-base/index.d.ts +0 -161
  429. package/ui/text-field/index.d.ts +0 -41
  430. package/ui/text-view/index.d.ts +0 -35
  431. package/ui/time-picker/index.d.ts +0 -80
  432. package/ui/transition/fade-transition.d.ts +0 -3
  433. package/ui/transition/flip-transition.d.ts +0 -5
  434. package/ui/transition/index.d.ts +0 -59
  435. package/ui/transition/modal-transition.d.ts +0 -2
  436. package/ui/transition/page-transition.d.ts +0 -4
  437. package/ui/transition/shared-transition-helper.d.ts +0 -14
  438. package/ui/transition/slide-transition.d.ts +0 -5
  439. package/ui/utils.d.ts +0 -44
  440. package/ui/web-view/index.d.ts +0 -130
  441. package/utils/constants.d.ts +0 -1
  442. package/utils/index.d.ts +0 -177
  443. package/utils/layout-helper/index.d.ts +0 -82
  444. package/utils/mainthread-helper.d.ts +0 -16
  445. package/utils/native-helper.d.ts +0 -280
  446. package/utils/typescript-utils.d.ts +0 -6
@@ -1,179 +0,0 @@
1
- import SwiftUI
2
- import NativeScriptEmbedder
3
- import UIKit
4
-
5
- @available(iOS 14.0, *)
6
- struct NativeScriptMainWindow: Scene {
7
-
8
- #if os(visionOS)
9
- // Environment control
10
- @Environment(\.openWindow) private var openWindow
11
- @Environment(\.dismissWindow) private var dismissWindow
12
- @Environment(\.openImmersiveSpace) private var openImmersiveSpace
13
- @Environment(\.dismissImmersiveSpace) private var dismissImmersiveSpace
14
- #endif
15
-
16
- var body: some Scene {
17
- #if os(visionOS)
18
- // windowStyle is only supported on visionOS
19
- WindowGroup {
20
- NativeScriptAppView(found: { windowScene in
21
- NativeScriptEmbedder.sharedInstance().setWindowScene(windowScene)
22
- }).onAppear {
23
- // print("NativeScriptAppView onAppear")
24
- DispatchQueue.main.async {
25
- NativeScriptEmbedder.boot()
26
- }
27
- }.onReceive(NotificationCenter.default
28
- .publisher(for: NSNotification.Name("NativeScriptWindowOpen")), perform: { obj in
29
- let info = parseWindowInfo(obj: obj)
30
- let id = info.keys.first
31
- Task {
32
- if (info[id!]!) {
33
- await openImmersiveSpace(id: id!)
34
- } else {
35
- openWindow(id: id!)
36
- }
37
- }
38
- }).onReceive(NotificationCenter.default
39
- .publisher(for: NSNotification.Name("NativeScriptWindowClose")), perform: { obj in
40
- let info = parseWindowInfo(obj: obj)
41
- let id = info.keys.first
42
- Task {
43
- if (info[id!]!) {
44
- await dismissImmersiveSpace()
45
- } else {
46
- dismissWindow(id: id!)
47
- }
48
- }
49
- })
50
- .onOpenURL { (url) in
51
- NotificationCenter.default.post(name: Notification.Name("NativeScriptOpenURL"), object: nil, userInfo: ["url": url.absoluteString ])
52
- }
53
- }
54
- .windowStyle(.plain)
55
- #else
56
- WindowGroup {
57
- NativeScriptAppView(found: { windowScene in
58
- NativeScriptEmbedder.sharedInstance().setWindowScene(windowScene)
59
- }).onAppear {
60
- // print("NativeScriptAppView onAppear")
61
- DispatchQueue.main.async {
62
- NativeScriptEmbedder.boot()
63
- }
64
-
65
- }
66
- }
67
- #endif
68
- }
69
-
70
- init() {
71
- NativeScriptViewFactory.initShared()
72
- NativeScriptEmbedder.sharedInstance().setDelegate(NativeScriptViewFactory.shared)
73
- NativeScriptEmbedder.setup()
74
- }
75
-
76
- #if os(visionOS)
77
- func parseWindowInfo(obj: Notification, close: Bool = false) -> [String:Bool] {
78
- if let userInfo = obj.userInfo {
79
- var id: String = ""
80
- var isImmersive = false
81
- for (key, value) in userInfo {
82
- let k = key as! String
83
- if (k == "type") {
84
- id = value as! String
85
- } else if (k == "isImmersive") {
86
- isImmersive = value as! Bool
87
- }
88
- }
89
- return [id: isImmersive]
90
-
91
- }
92
- return ["_": false]
93
- }
94
- #endif
95
- }
96
-
97
- @available(iOS 13.0, *)
98
- struct NativeScriptAppView: UIViewRepresentable {
99
- /// A closure that's called when the window is found.
100
- var found: ((UIWindowScene?) -> Void)
101
-
102
- func makeUIView(context: Context) -> UIView {
103
- // print("NativeScriptAppView makeUIView")
104
- var window: UIWindow? {
105
- guard let scene = UIApplication.shared.connectedScenes.first,
106
- let windowSceneDelegate = scene.delegate as? UIWindowSceneDelegate,
107
- let window = windowSceneDelegate.window else {
108
- return nil
109
- }
110
- return window
111
- }
112
-
113
- DispatchQueue.main.async {
114
- found(window?.windowScene)
115
- }
116
-
117
- return NativeScriptViewFactory.app!.view
118
- }
119
-
120
- func updateUIView(_ uiView: UIView, context: Context) {
121
- // print("NativeScriptAppView updateUIView")
122
- // could update data through the controller
123
- }
124
- }
125
-
126
- @available(iOS 13.0, *)
127
- @objc public class NativeScriptViewFactory: NSObject, NativeScriptEmbedderDelegate {
128
- @objc static var shared: NativeScriptViewFactory?
129
- @objc static var app: NativeScriptContainerCtrl?
130
-
131
- // holds key/value map of views for lifecycle handling
132
- @objc public var views: NSMutableDictionary?
133
-
134
- // provided by NativeScript to coordinate view lifecycle
135
- @objc public var viewCreator: ((String) -> Void)? = nil
136
- @objc public var viewDestroyer: ((String) -> Void)? = nil
137
-
138
- // get or create (if needed) NativeScript views to represent in SwiftUI
139
- @objc public func getViewById(_ id: String) -> UIView {
140
- let vc = views!.object(forKey: id) as? UIView
141
- if (vc == nil) {
142
- // create the NativeScript view
143
- viewCreator!(id)
144
- }
145
- return views!.object(forKey: id) as! UIView
146
- }
147
-
148
- @available(iOS 15.0, *)
149
- @objc public static func getKeyWindow() -> UIWindow? {
150
- return UIApplication
151
- .shared
152
- .connectedScenes
153
- .compactMap { ($0 as? UIWindowScene)?.keyWindow }
154
- .last
155
- }
156
-
157
- @objc public static func initShared() {
158
- if (NativeScriptViewFactory.shared == nil) {
159
- NativeScriptViewFactory.app = NativeScriptContainerCtrl()
160
- NativeScriptViewFactory.shared = NativeScriptViewFactory()
161
- NativeScriptViewFactory.shared!.views = NSMutableDictionary()
162
- }
163
- }
164
-
165
- public func presentNativeScriptApp(_ vc: UIViewController!) -> Any! {
166
- vc.view.frame = NativeScriptViewFactory.app!.view.bounds
167
- vc.view.autoresizingMask = [.flexibleWidth, .flexibleHeight]
168
- NativeScriptViewFactory.app!.addChild(vc)
169
- NativeScriptViewFactory.app!.view.addSubview(vc.view)
170
- vc.didMove(toParent: NativeScriptViewFactory.app)
171
- return NativeScriptViewFactory.app
172
- }
173
- }
174
-
175
- // UIViewController
176
- @objc public class NativeScriptContainerCtrl: UIViewController {
177
- // allow NativeScript to override updateData for custom handling
178
- @objc public var updateData: ((_ data: NSMutableDictionary) -> Void)? = nil
179
- }
@@ -1,16 +0,0 @@
1
- //
2
- // NativeScriptUtils.h
3
- //
4
- // Created by Nathan Walker on 2/02/2022.
5
- #include <UIKit/UIKit.h>
6
-
7
- @interface NativeScriptUtils : NSObject
8
-
9
- +(UIFont*) getSystemFont:(CGFloat)size weight:(UIFontWeight)weight italic:(BOOL)italic symbolicTraits:(UIFontDescriptorSymbolicTraits)symbolicTraits;
10
- +(UIFont*) createUIFont:(NSDictionary*)font;
11
- +(NSMutableAttributedString*)createMutableStringWithDetails:(NSDictionary*)details;
12
- +(NSMutableAttributedString*)createMutableStringForSpan:(NSString*)text font:(UIFont*)font color:(UIColor*)color backgroundColor:(UIColor*)backgroundColor textDecoration:(NSString*)textDecoration baselineOffset:(CGFloat)baselineOffset;
13
- +(UIImage*)scaleImage:(UIImage*)image width:(CGFloat)width height:(CGFloat)height scaleFactor:(CGFloat)scaleFactor;
14
- +(NSData*)getImageData:(UIImage*)image format:(NSString*)format quality:(CGFloat)quality;
15
-
16
- @end
@@ -1,137 +0,0 @@
1
- #import "NativeScriptUtils.h"
2
-
3
- @implementation NativeScriptUtils
4
-
5
- +(UIFont*) getSystemFont:(CGFloat)size weight:(UIFontWeight)weight italic:(BOOL)italic symbolicTraits:(UIFontDescriptorSymbolicTraits)symbolicTraits {
6
- UIFont *result = [UIFont systemFontOfSize:size weight:weight];
7
- if (italic) {
8
- result = [UIFont fontWithDescriptor:[result.fontDescriptor fontDescriptorWithSymbolicTraits:symbolicTraits] size:size];
9
- }
10
-
11
- return result;
12
- }
13
- +(UIFont*) createUIFont:(NSDictionary*)font {
14
- UIFont *result;
15
-
16
- CGFloat size = [[font valueForKey:@"fontSize"] floatValue];
17
-
18
- UIFontDescriptorSymbolicTraits symbolicTraits = 0;
19
- if ([[font valueForKey:@"isBold"] boolValue]) {
20
- symbolicTraits = symbolicTraits | UIFontDescriptorTraitBold;
21
- }
22
- if ([[font valueForKey:@"isItalic"] boolValue]) {
23
- symbolicTraits = symbolicTraits | UIFontDescriptorTraitItalic;
24
- }
25
-
26
- NSDictionary *fontDescriptorTraits = @{
27
- UIFontSymbolicTrait : @(symbolicTraits),
28
- UIFontWeightTrait : [font valueForKey:@"fontWeight"]
29
- };
30
-
31
- for (NSString *family in [NSArray arrayWithArray:[font valueForKey:@"fontFamily"]]) {
32
- NSString *fontFamily = family;
33
- if ([family.lowercaseString isEqualToString:@"serif"]) {
34
- fontFamily = @"Times New Roman";
35
- } else if ([family.lowercaseString isEqualToString:@"monospace"]) {
36
- fontFamily = @"Courier New";
37
- }
38
-
39
- if (!fontFamily || [fontFamily isEqualToString:@"sans-serif"] || [fontFamily isEqualToString:@"system"]) {
40
- result = [NativeScriptUtils getSystemFont:size weight:(UIFontWeight)[[font valueForKey:@"fontWeight"] floatValue] italic:[[font valueForKey:@"isItalic"] boolValue] symbolicTraits:symbolicTraits];
41
- break;
42
- } else {
43
- UIFontDescriptor *descriptor = [UIFontDescriptor fontDescriptorWithFontAttributes:@{
44
- UIFontDescriptorFamilyAttribute: fontFamily,
45
- UIFontDescriptorTraitsAttribute: fontDescriptorTraits
46
- }];
47
-
48
- result = [UIFont fontWithDescriptor:descriptor size:size];
49
-
50
- BOOL actualItalic = result.fontDescriptor.symbolicTraits & UIFontDescriptorTraitItalic;
51
- if ([[font valueForKey:@"isItalic"] boolValue] && !actualItalic) {
52
- #if TARGET_OS_MACCATALYST
53
- #else
54
- // The font we got is not actually italic so emulate that with a matrix
55
- result = [UIFont fontWithDescriptor:[descriptor fontDescriptorWithMatrix:CGAffineTransformMake(1, 0, 0.2, 1, 0, 0)] size:size];
56
- #endif
57
- }
58
-
59
- // Check if the resolved font has the correct font-family
60
- // If not - fallback to the next font-family
61
- if ([result.familyName isEqualToString:fontFamily]) {
62
- break;
63
- } else {
64
- result = nil;
65
- }
66
- }
67
- }
68
-
69
- // Couldn't resolve font - fallback to the system font
70
- if (result == nil) {
71
- result = [NativeScriptUtils getSystemFont:size weight:(UIFontWeight)[[font valueForKey:@"fontWeight"] floatValue] italic:[[font valueForKey:@"isItalic"] boolValue] symbolicTraits:symbolicTraits];
72
- }
73
-
74
- return result;
75
- }
76
-
77
- +(NSMutableAttributedString*)createMutableStringWithDetails:(NSDictionary*)details {
78
- NSMutableAttributedString *mas = [[NSMutableAttributedString alloc] init];
79
- for (NSDictionary *detail in [NSArray arrayWithArray:[details valueForKey:@"spans"]]) {
80
- NSMutableAttributedString *attrString = [NativeScriptUtils createMutableStringForSpan:[detail objectForKey:@"text"] font:[detail objectForKey:@"iosFont"] color:[detail objectForKey:@"color"] backgroundColor:[detail objectForKey:@"backgroundColor"] textDecoration:[detail objectForKey:@"textDecoration"] baselineOffset:[[detail valueForKey:@"baselineOffset"] floatValue]];
81
- [mas insertAttributedString:attrString atIndex:[[detail valueForKey:@"index"] intValue]];
82
- }
83
- return mas;
84
- }
85
-
86
- +(NSMutableAttributedString*)createMutableStringForSpan:(NSString*)text font:(UIFont*)font color:(UIColor*)color backgroundColor:(UIColor*)backgroundColor textDecoration:(NSString*)textDecoration baselineOffset:(CGFloat)baselineOffset {
87
- NSMutableDictionary *attrDict = [[NSMutableDictionary alloc] init];
88
- attrDict[NSFontAttributeName] = font;
89
-
90
- if (color != nil) {
91
- attrDict[NSForegroundColorAttributeName] = color;
92
- }
93
-
94
- if (backgroundColor != nil) {
95
- attrDict[NSBackgroundColorAttributeName] = backgroundColor;
96
- }
97
-
98
- if (textDecoration != nil) {
99
- if ([textDecoration rangeOfString:@"underline"].location != NSNotFound) {
100
- attrDict[NSUnderlineStyleAttributeName] = [NSNumber numberWithInt:NSUnderlineStyleSingle];
101
- }
102
-
103
- if ([textDecoration rangeOfString:@"line-through"].location != NSNotFound) {
104
- attrDict[NSStrikethroughStyleAttributeName] = [NSNumber numberWithInt:NSUnderlineStyleSingle];
105
- }
106
- }
107
-
108
- attrDict[NSBaselineOffsetAttributeName] = [NSNumber numberWithInt:baselineOffset];
109
-
110
- return [[NSMutableAttributedString alloc] initWithString:text attributes:attrDict];
111
-
112
- }
113
-
114
- +(UIImage*)scaleImage:(UIImage*)image width:(CGFloat)width height:(CGFloat)height scaleFactor:(CGFloat)scaleFactor {
115
- UIImage *resultImage;
116
- @autoreleasepool {
117
- UIGraphicsBeginImageContextWithOptions(CGSizeMake(width, height), NO, scaleFactor);
118
- [image drawInRect:CGRectMake(0, 0, width, height)];
119
- resultImage = UIGraphicsGetImageFromCurrentImageContext();
120
- UIGraphicsEndImageContext();
121
- }
122
- return resultImage;
123
- }
124
-
125
- +(NSData*)getImageData:(UIImage*)image format:(NSString*)format quality:(CGFloat)quality {
126
- NSData *data;
127
- @autoreleasepool {
128
- if ([format.lowercaseString isEqualToString:@"png"]) {
129
- data = UIImagePNGRepresentation(image);
130
- } else {
131
- data = UIImageJPEGRepresentation(image, quality);
132
- }
133
- }
134
- return data;
135
- }
136
-
137
- @end
@@ -1,15 +0,0 @@
1
- //
2
- // UIView+NativeScript.h
3
- //
4
- // Created by Nathan Walker on 2/02/2022.
5
- #include <UIKit/UIKit.h>
6
-
7
- @interface UIView (NativeScript)
8
-
9
- - (void)nativeScriptSetTextDecorationAndTransform:(NSString*)text textDecoration:(NSString*)textDecoration letterSpacing:(CGFloat)letterSpacing lineHeight:(CGFloat)lineHeight;
10
-
11
- -(void)nativeScriptSetFormattedTextDecorationAndTransform:(NSDictionary*)details letterSpacing:(CGFloat)letterSpacing lineHeight:(CGFloat)lineHeight;
12
-
13
- -(void)nativeScriptSetFormattedTextStroke:(CGFloat)width color:(UIColor*)color;
14
-
15
- @end
@@ -1,150 +0,0 @@
1
- #import <UIKit/UIKit.h>
2
- #import "UIView+NativeScript.h"
3
- #import "NativeScriptUtils.h"
4
-
5
- @implementation UIView (NativeScript)
6
- - (void)nativeScriptSetTextDecorationAndTransform:(NSString*)text textDecoration:(NSString*)textDecoration letterSpacing:(CGFloat)letterSpacing lineHeight:(CGFloat)lineHeight {
7
- NSMutableDictionary *attrDict = [[NSMutableDictionary alloc] init];
8
-
9
- if ([textDecoration rangeOfString:@"underline"].location != NSNotFound) {
10
- attrDict[NSUnderlineStyleAttributeName] = [NSNumber numberWithInt:NSUnderlineStyleSingle];
11
- }
12
-
13
- if ([textDecoration rangeOfString:@"line-through"].location != NSNotFound) {
14
- attrDict[NSStrikethroughStyleAttributeName] = [NSNumber numberWithInt:NSUnderlineStyleSingle];
15
- }
16
- BOOL isTextType = [self isKindOfClass:[UITextField class]] || [self isKindOfClass:[UITextView class]] | [self isKindOfClass:[UILabel class]] | [self isKindOfClass:[UIButton class]];
17
-
18
- if (letterSpacing != 0 && isTextType && ((UITextView*)self).font != nil) {
19
- NSNumber *kern = [NSNumber numberWithDouble:letterSpacing * ((UITextView*)self).font.pointSize];
20
- attrDict[NSKernAttributeName] = kern;
21
- if ([self isKindOfClass:[UITextField class]]) {
22
- [((UITextField*)self).defaultTextAttributes setValue:kern forKey:NSKernAttributeName];
23
- }
24
- }
25
-
26
- BOOL isTextView = [self isKindOfClass:[UITextView class]];
27
- if (lineHeight > 0) {
28
- NSMutableParagraphStyle *paragraphStyle = [[NSMutableParagraphStyle alloc] init];
29
- // Note: Avoid using lineSpacing as it will append the height as extra space
30
- paragraphStyle.minimumLineHeight = lineHeight;
31
- // make sure a possible previously set text alignment setting is not lost when line height is specified
32
- if ([self isKindOfClass:[UIButton class]]) {
33
- paragraphStyle.alignment = ((UIButton*)self).titleLabel.textAlignment;
34
- } else {
35
- paragraphStyle.alignment = ((UILabel*)self).textAlignment;
36
- }
37
-
38
- if ([self isKindOfClass:[UILabel class]]) {
39
- // make sure a possible previously set line break mode is not lost when line height is specified
40
- paragraphStyle.lineBreakMode = ((UILabel*)self).lineBreakMode;
41
- }
42
- attrDict[NSParagraphStyleAttributeName] = paragraphStyle;
43
- } else if (isTextView) {
44
- NSMutableParagraphStyle *paragraphStyle = [[NSMutableParagraphStyle alloc] init];
45
- paragraphStyle.alignment = ((UITextView*)self).textAlignment;
46
- attrDict[NSParagraphStyleAttributeName] = paragraphStyle;
47
- }
48
-
49
- if (attrDict.count > 0 || isTextView) {
50
- if (isTextView && ((UITextView*)self).font) {
51
- // UITextView's font seems to change inside.
52
- attrDict[NSFontAttributeName] = ((UITextView*)self).font;
53
- }
54
-
55
- NSMutableAttributedString *result = [[NSMutableAttributedString alloc] initWithString:text];
56
- [result setAttributes:attrDict range:(NSRange){
57
- 0,
58
- text.length
59
- }];
60
-
61
- if ([self isKindOfClass:[UIButton class]]) {
62
- [(UIButton*)self setAttributedTitle:result forState:UIControlStateNormal];
63
- } else {
64
- ((UITextView*)self).attributedText = result;
65
- }
66
- } else {
67
- if ([self isKindOfClass:[UIButton class]]) {
68
- // Clear attributedText or title won't be affected.
69
- [(UIButton*)self setAttributedTitle:nil forState:UIControlStateNormal];
70
- [(UIButton*)self setTitle:text forState:UIControlStateNormal];
71
- } else {
72
- // Clear attributedText or text won't be affected.
73
- ((UILabel*)self).attributedText = nil;
74
- ((UILabel*)self).text = text;
75
- }
76
- }
77
- }
78
-
79
- -(void)nativeScriptSetFormattedTextDecorationAndTransform:(NSDictionary*)details letterSpacing:(CGFloat)letterSpacing lineHeight:(CGFloat)lineHeight {
80
- NSMutableAttributedString *attrText = [NativeScriptUtils createMutableStringWithDetails:details];
81
- if (letterSpacing != 0) {
82
- NSNumber *kern = [NSNumber numberWithDouble:letterSpacing * ((UITextView*)self).font.pointSize];
83
- [attrText addAttribute:NSKernAttributeName value:kern range:(NSRange){
84
- 0,
85
- attrText.length
86
- } ];
87
- }
88
-
89
- BOOL isLabel = [self isKindOfClass:[UILabel class]];
90
- if (lineHeight > 0) {
91
- NSMutableParagraphStyle *paragraphStyle = [[NSMutableParagraphStyle alloc] init];
92
- // Note: Avoid using lineSpacing as it will append the height as extra space
93
- paragraphStyle.minimumLineHeight = lineHeight;
94
- // make sure a possible previously set text alignment setting is not lost when line height is specified
95
- if ([self isKindOfClass:[UIButton class]]) {
96
- paragraphStyle.alignment = ((UIButton*)self).titleLabel.textAlignment;
97
- } else {
98
- // Paragraph alignment is also important for tappable spans as NSTextContainer takes it into account
99
- paragraphStyle.alignment = ((UILabel*)self).textAlignment;
100
- }
101
-
102
- if (isLabel) {
103
- // make sure a possible previously set line break mode is not lost when line height is specified
104
- paragraphStyle.lineBreakMode = ((UILabel*)self).lineBreakMode;
105
- }
106
- [attrText addAttribute:NSParagraphStyleAttributeName value:paragraphStyle range:(NSRange){
107
- 0,
108
- attrText.length
109
- }];
110
- } else if (isLabel || [self isKindOfClass:[UITextView class]]) {
111
- NSMutableParagraphStyle *paragraphStyle = [[NSMutableParagraphStyle alloc] init];
112
-
113
- if (isLabel) {
114
- // It's important to set paragraph alignment for link tap to work on multi-line spans as NSTextContainer takes it into account
115
- paragraphStyle.alignment = ((UILabel*)self).textAlignment;
116
- } else {
117
- paragraphStyle.alignment = ((UITextView*)self).textAlignment;
118
- }
119
- [attrText addAttribute:NSParagraphStyleAttributeName value:paragraphStyle range:(NSRange){
120
- 0,
121
- attrText.length
122
- }];
123
- }
124
-
125
- if ([self isKindOfClass:[UIButton class]]) {
126
- [(UIButton*)self setAttributedTitle:attrText forState:UIControlStateNormal];
127
- } else {
128
- if (@available(iOS 13.0, *)) {
129
- ((UILabel*)self).textColor = [UIColor labelColor];
130
- }
131
-
132
- ((UILabel*)self).attributedText = attrText;
133
- }
134
- }
135
-
136
- -(void)nativeScriptSetFormattedTextStroke:(CGFloat)width color:(UIColor*)color {
137
- if (width > 0) {
138
- NSMutableAttributedString *attrText = [[NSMutableAttributedString alloc] initWithAttributedString:((UILabel*)self).attributedText];
139
- [attrText addAttribute:NSStrokeWidthAttributeName value:[NSNumber numberWithFloat:width] range:(NSRange){
140
- 0,
141
- attrText.length
142
- }];
143
- [attrText addAttribute:NSStrokeColorAttributeName value:color range:(NSRange){
144
- 0,
145
- attrText.length
146
- }];
147
- ((UILabel*)self).attributedText = attrText;
148
- }
149
- }
150
- @end
@@ -1,14 +0,0 @@
1
- module NativeScriptEmbedder {
2
- header "NativeScriptEmbedder.h"
3
- export *
4
- }
5
-
6
- module NativeScriptUtils {
7
- header "NativeScriptUtils.h"
8
- export *
9
- }
10
-
11
- module UIViewNativeScript {
12
- header "UIView+NativeScript.h"
13
- export *
14
- }