@triniwiz/nativescript-masonkit 1.0.0-beta.70 → 1.0.0-beta.71

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 (73) hide show
  1. package/common.d.ts +34 -12
  2. package/common.js +193 -7
  3. package/common.js.map +1 -1
  4. package/index.d.ts +9 -0
  5. package/package.json +1 -1
  6. package/platforms/android/include.gradle +1 -0
  7. package/platforms/android/masonkit-release.aar +0 -0
  8. package/platforms/ios/Mason.xcframework/Info.plist +5 -5
  9. package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Headers/Mason-Swift.h +101 -119
  10. package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Info.plist +0 -0
  11. package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Mason +0 -0
  12. package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/Project/arm64-apple-ios.swiftsourceinfo +0 -0
  13. package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios.abi.json +38643 -42603
  14. package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios.private.swiftinterface +212 -551
  15. package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
  16. package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios.swiftinterface +212 -551
  17. package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/module.modulemap +0 -1
  18. package/platforms/ios/Mason.xcframework/ios-arm64/dSYMs/Mason.framework.dSYM/Contents/Resources/DWARF/Mason +0 -0
  19. package/platforms/ios/Mason.xcframework/ios-arm64/dSYMs/Mason.framework.dSYM/Contents/Resources/Relocations/aarch64/Mason.yml +8340 -8694
  20. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Headers/Mason-Swift.h +202 -238
  21. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Info.plist +0 -0
  22. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Mason +0 -0
  23. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/Project/arm64-apple-ios-simulator.swiftsourceinfo +0 -0
  24. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/Project/x86_64-apple-ios-simulator.swiftsourceinfo +0 -0
  25. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios-simulator.abi.json +38643 -42603
  26. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +212 -551
  27. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
  28. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios-simulator.swiftinterface +212 -551
  29. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/x86_64-apple-ios-simulator.abi.json +38643 -42603
  30. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +212 -551
  31. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
  32. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +212 -551
  33. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/module.modulemap +0 -1
  34. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/_CodeSignature/CodeResources +29 -29
  35. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/dSYMs/Mason.framework.dSYM/Contents/Resources/DWARF/Mason +0 -0
  36. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/dSYMs/Mason.framework.dSYM/Contents/Resources/Relocations/aarch64/Mason.yml +8335 -8689
  37. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/dSYMs/Mason.framework.dSYM/Contents/Resources/Relocations/x86_64/Mason.yml +7982 -8321
  38. package/properties.js +11 -0
  39. package/properties.js.map +1 -1
  40. package/scroll/index.android.js +4 -1
  41. package/scroll/index.android.js.map +1 -1
  42. package/scroll/index.ios.js +10 -1
  43. package/scroll/index.ios.js.map +1 -1
  44. package/style.d.ts +6 -6
  45. package/style.js +7 -4
  46. package/style.js.map +1 -1
  47. package/symbols.d.ts +1 -0
  48. package/symbols.js +1 -0
  49. package/symbols.js.map +1 -1
  50. package/text/index.android.js +12 -1
  51. package/text/index.android.js.map +1 -1
  52. package/text/index.ios.js +5 -1
  53. package/text/index.ios.js.map +1 -1
  54. package/tree/index.android.js +5 -7
  55. package/tree/index.android.js.map +1 -1
  56. package/tree/index.ios.js +4 -6
  57. package/tree/index.ios.js.map +1 -1
  58. package/view/index.android.js +4 -1
  59. package/view/index.android.js.map +1 -1
  60. package/view/index.ios.js +16 -1
  61. package/view/index.ios.js.map +1 -1
  62. package/platforms/ios/Mason.xcframework/ios-arm64-simulator/Mason.framework/Headers/Mason-Swift.h +0 -1995
  63. package/platforms/ios/Mason.xcframework/ios-arm64-simulator/Mason.framework/Headers/Mason.h +0 -25
  64. package/platforms/ios/Mason.xcframework/ios-arm64-simulator/Mason.framework/Headers/mason_native.h +0 -499
  65. package/platforms/ios/Mason.xcframework/ios-arm64-simulator/Mason.framework/Info.plist +0 -0
  66. package/platforms/ios/Mason.xcframework/ios-arm64-simulator/Mason.framework/Mason +0 -0
  67. package/platforms/ios/Mason.xcframework/ios-arm64-simulator/Mason.framework/Modules/Mason.swiftmodule/Project/arm64-apple-ios-simulator.swiftsourceinfo +0 -0
  68. package/platforms/ios/Mason.xcframework/ios-arm64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios-simulator.abi.json +0 -102460
  69. package/platforms/ios/Mason.xcframework/ios-arm64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +0 -3807
  70. package/platforms/ios/Mason.xcframework/ios-arm64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
  71. package/platforms/ios/Mason.xcframework/ios-arm64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios-simulator.swiftinterface +0 -3807
  72. package/platforms/ios/Mason.xcframework/ios-arm64-simulator/Mason.framework/Modules/module.modulemap +0 -11
  73. package/platforms/ios/Mason.xcframework/ios-arm64-simulator/Mason.framework/_CodeSignature/CodeResources +0 -212
@@ -1,6 +1,6 @@
1
1
  #if 0
2
2
  #elif defined(__arm64__) && __arm64__
3
- // Generated by Apple Swift version 6.2.3 effective-5.10 (swiftlang-6.2.3.3.21 clang-1700.6.3.2)
3
+ // Generated by Apple Swift version 6.3.1 effective-5.10 (swiftlang-6.3.1.1.2 clang-2100.0.123.102)
4
4
  #ifndef MASON_SWIFT_H
5
5
  #define MASON_SWIFT_H
6
6
  #pragma clang diagnostic push
@@ -26,7 +26,7 @@
26
26
  #pragma clang diagnostic ignored "-Wauto-import"
27
27
  #if defined(__OBJC__)
28
28
  #include <Foundation/Foundation.h>
29
- #endif
29
+ #endif // defined(__OBJC__)
30
30
  #if defined(__cplusplus)
31
31
  #include <cstdint>
32
32
  #include <cstddef>
@@ -195,13 +195,32 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
195
195
  # endif
196
196
  #endif
197
197
  #if !defined(SWIFT_ENUM)
198
- # define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
199
- # if __has_feature(generalized_swift_name)
200
- # define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) enum _name : _type _name SWIFT_COMPILE_NAME(SWIFT_NAME); enum SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
198
+ # if (defined(__cplusplus) && __cplusplus >= 201103L) || (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 202311L) || __has_feature(objc_fixed_enum)
199
+ # define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
200
+ # if __has_feature(generalized_swift_name)
201
+ # define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) enum _name : _type _name SWIFT_COMPILE_NAME(SWIFT_NAME); enum SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
202
+ # else
203
+ # define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility)
204
+ # endif
201
205
  # else
206
+ # define SWIFT_ENUM(_type, _name, _extensibility) _type _name; enum
202
207
  # define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility)
203
208
  # endif
204
209
  #endif
210
+ #if !defined(SWIFT_ENUM_TAG)
211
+ # if (defined(__cplusplus) && __cplusplus >= 201103L) || (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 202311L) || __has_feature(objc_fixed_enum)
212
+ # define SWIFT_ENUM_TAG enum
213
+ # else
214
+ # define SWIFT_ENUM_TAG
215
+ # endif
216
+ #endif
217
+ #if !defined(SWIFT_ENUM_FWD_DECL)
218
+ # if (defined(__cplusplus) && __cplusplus >= 201103L) || (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 202311L) || __has_feature(objc_fixed_enum)
219
+ # define SWIFT_ENUM_FWD_DECL(_type, _name) enum _name : _type;
220
+ # else
221
+ # define SWIFT_ENUM_FWD_DECL(_type, _name) typedef _type _name;
222
+ # endif
223
+ #endif
205
224
  #if !defined(SWIFT_UNAVAILABLE)
206
225
  # define SWIFT_UNAVAILABLE __attribute__((unavailable))
207
226
  #endif
@@ -211,6 +230,9 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
211
230
  #if !defined(SWIFT_AVAILABILITY)
212
231
  # define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__)))
213
232
  #endif
233
+ #if !defined(SWIFT_AVAILABILITY_DOMAIN)
234
+ # define SWIFT_AVAILABILITY_DOMAIN(dom, ...) __attribute__((availability(domain: dom, __VA_ARGS__)))
235
+ #endif
214
236
  #if !defined(SWIFT_WEAK_IMPORT)
215
237
  # define SWIFT_WEAK_IMPORT __attribute__((weak_import))
216
238
  #endif
@@ -276,6 +298,49 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
276
298
  # define SWIFT_IMPORT_STDLIB_SYMBOL
277
299
  #endif
278
300
  #endif
301
+ #if !__has_feature(nullability)
302
+ # define _Nonnull
303
+ # define _Nullable
304
+ # define _Null_unspecified
305
+ #elif !defined(__OBJC__)
306
+ # pragma clang diagnostic ignored "-Wnullability-extension"
307
+ #endif
308
+ #if !__has_feature(nullability_nullable_result)
309
+ # define _Nullable_result _Nullable
310
+ #endif
311
+ #if __has_feature(objc_modules)
312
+ #if __has_warning("-Watimport-in-framework-header")
313
+ #pragma clang diagnostic ignored "-Watimport-in-framework-header"
314
+ #endif
315
+ #endif
316
+
317
+ #pragma clang diagnostic ignored "-Wproperty-attribute-mismatch"
318
+ #pragma clang diagnostic ignored "-Wduplicate-method-arg"
319
+ #if __has_warning("-Wpragma-clang-attribute")
320
+ # pragma clang diagnostic ignored "-Wpragma-clang-attribute"
321
+ #endif
322
+ #pragma clang diagnostic ignored "-Wunknown-pragmas"
323
+ #pragma clang diagnostic ignored "-Wnullability"
324
+ #pragma clang diagnostic ignored "-Wdollar-in-identifier-extension"
325
+ #pragma clang diagnostic ignored "-Wunsafe-buffer-usage"
326
+
327
+ #if __has_attribute(external_source_symbol)
328
+ # pragma push_macro("any")
329
+ # undef any
330
+ # pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="Mason",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol))
331
+ # pragma pop_macro("any")
332
+ #endif
333
+
334
+ #if defined(__cplusplus)
335
+ extern "C" {
336
+ #endif
337
+
338
+ #if defined(__cplusplus)
339
+ } // extern "C"
340
+ #endif
341
+ #if __has_attribute(external_source_symbol)
342
+ # pragma clang attribute pop
343
+ #endif
279
344
  #if defined(__OBJC__)
280
345
  #if __has_feature(objc_modules)
281
346
  #if __has_warning("-Watimport-in-framework-header")
@@ -289,7 +354,7 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
289
354
  @import UIKit;
290
355
  #endif
291
356
 
292
- #endif
357
+ #endif // defined(__OBJC__)
293
358
  #pragma clang diagnostic ignored "-Wproperty-attribute-mismatch"
294
359
  #pragma clang diagnostic ignored "-Wduplicate-method-arg"
295
360
  #if __has_warning("-Wpragma-clang-attribute")
@@ -486,7 +551,7 @@ typedef SWIFT_ENUM_NAMED(NSInteger, MasonGridAutoFlowWrap, "GridAutoFlow", open)
486
551
  MasonGridAutoFlowWrapColumnDense = 3,
487
552
  };
488
553
 
489
- enum MasonGridPlacementCompatType : NSInteger;
554
+ SWIFT_ENUM_FWD_DECL(NSInteger, MasonGridPlacementCompatType)
490
555
  SWIFT_CLASS_NAMED("GridPlacementCompat")
491
556
  @interface GridPlacementCompat : NSObject
492
557
  - (nonnull instancetype)initWithSpan:(int16_t)span OBJC_DESIGNATED_INITIALIZER;
@@ -530,7 +595,7 @@ SWIFT_CLASS_NAMED("HTMLParser")
530
595
  + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
531
596
  @end
532
597
 
533
- enum MasonLoadingState : NSInteger;
598
+ SWIFT_ENUM_FWD_DECL(NSInteger, MasonLoadingState)
534
599
  @class UIImage;
535
600
  SWIFT_CLASS_NAMED("Img")
536
601
  @interface MasonImg : UIView <MasonElementObjc>
@@ -644,7 +709,7 @@ SWIFT_PROTOCOL("_TtP5Mason18MasonCharacterData_")
644
709
  - (nonnull instancetype)replaceDataWithRange:(NSRange)range with:(NSString * _Nonnull)s;
645
710
  @end
646
711
 
647
- enum MasonDimensionCompatType : NSInteger;
712
+ SWIFT_ENUM_FWD_DECL(NSInteger, MasonDimensionCompatType)
648
713
  SWIFT_CLASS_NAMED("MasonDimensionCompat")
649
714
  @interface MasonDimensionCompat : NSObject
650
715
  - (nonnull instancetype)initWithPoints:(float)points OBJC_DESIGNATED_INITIALIZER;
@@ -756,7 +821,7 @@ SWIFT_CLASS("_TtC5Mason15MasonImageLayer")
756
821
  - (void)layoutSublayers;
757
822
  @end
758
823
 
759
- enum MasonInputType : int8_t;
824
+ SWIFT_ENUM_FWD_DECL(int8_t, MasonInputType)
760
825
  @class NSDate;
761
826
  SWIFT_CLASS_NAMED("MasonInput")
762
827
  @interface MasonInput : UIView
@@ -844,7 +909,7 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) MasonLayout
844
909
  + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
845
910
  @end
846
911
 
847
- enum MasonLengthPercentageAutoCompatType : NSInteger;
912
+ SWIFT_ENUM_FWD_DECL(NSInteger, MasonLengthPercentageAutoCompatType)
848
913
  SWIFT_CLASS_NAMED("MasonLengthPercentageAutoCompat")
849
914
  @interface MasonLengthPercentageAutoCompat : NSObject
850
915
  - (nonnull instancetype)initWithPoints:(float)points OBJC_DESIGNATED_INITIALIZER;
@@ -894,7 +959,7 @@ SWIFT_CLASS_NAMED("MasonLengthPercentageAutoSizeCompat")
894
959
  + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
895
960
  @end
896
961
 
897
- enum MasonLengthPercentageCompatType : NSInteger;
962
+ SWIFT_ENUM_FWD_DECL(NSInteger, MasonLengthPercentageCompatType)
898
963
  SWIFT_CLASS_NAMED("MasonLengthPercentageCompat")
899
964
  @interface MasonLengthPercentageCompat : NSObject
900
965
  - (nonnull instancetype)initWithPoints:(float)points OBJC_DESIGNATED_INITIALIZER;
@@ -1049,8 +1114,8 @@ SWIFT_CLASS_NAMED("MasonMouseEventOptions")
1049
1114
  - (nonnull instancetype)initWithIsComposing:(BOOL)isComposing OBJC_DESIGNATED_INITIALIZER;
1050
1115
  @end
1051
1116
 
1052
- enum PseudoState : uint16_t;
1053
- enum MasonNodeType : int32_t;
1117
+ SWIFT_ENUM_FWD_DECL(uint16_t, PseudoState)
1118
+ SWIFT_ENUM_FWD_DECL(int32_t, MasonNodeType)
1054
1119
  SWIFT_CLASS_NAMED("MasonNode")
1055
1120
  @interface MasonNode : NSObject
1056
1121
  @property (nonatomic, readonly, strong) NSCMason * _Nonnull mason;
@@ -1103,7 +1168,7 @@ typedef SWIFT_ENUM_NAMED(int32_t, MasonNodeType, "MasonNodeType", open) {
1103
1168
  MasonNodeTypeDocument = 2,
1104
1169
  };
1105
1170
 
1106
- enum MasonOverflow : NSInteger;
1171
+ SWIFT_ENUM_FWD_DECL(NSInteger, MasonOverflow)
1107
1172
  SWIFT_CLASS_NAMED("MasonOverflowPointCompat")
1108
1173
  @interface MasonOverflowPointCompat : NSObject
1109
1174
  @property (nonatomic) enum MasonOverflow x;
@@ -1134,15 +1199,15 @@ SWIFT_CLASS_NAMED("MasonSizeHelper")
1134
1199
 
1135
1200
  @class NSCFontFace;
1136
1201
  @class MasonVerticalAlignValue;
1137
- enum MasonObjectFit : NSInteger;
1202
+ SWIFT_ENUM_FWD_DECL(NSInteger, MasonObjectFit)
1138
1203
  @class UIColor;
1139
- enum MasonTextJustify : NSInteger;
1204
+ SWIFT_ENUM_FWD_DECL(NSInteger, MasonTextJustify)
1140
1205
  @class MasonTextOverflowCompat;
1141
- enum MasonTextTransform : NSInteger;
1142
- enum MasonWhiteSpace : NSInteger;
1143
- enum MasonTextWrap : NSInteger;
1144
- enum MasonPosition : NSInteger;
1145
- enum MasonTextAlign : NSInteger;
1206
+ SWIFT_ENUM_FWD_DECL(NSInteger, MasonTextTransform)
1207
+ SWIFT_ENUM_FWD_DECL(NSInteger, MasonWhiteSpace)
1208
+ SWIFT_ENUM_FWD_DECL(NSInteger, MasonTextWrap)
1209
+ SWIFT_ENUM_FWD_DECL(NSInteger, MasonPosition)
1210
+ SWIFT_ENUM_FWD_DECL(NSInteger, MasonTextAlign)
1146
1211
  SWIFT_CLASS_NAMED("MasonStyle")
1147
1212
  @interface MasonStyle : NSObject
1148
1213
  @property (nonatomic, readonly, strong) NSCFontFace * _Null_unspecified font;
@@ -1292,7 +1357,7 @@ SWIFT_CLASS_NAMED("MasonStyle")
1292
1357
  + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
1293
1358
  @end
1294
1359
 
1295
- enum MasonTextType : NSInteger;
1360
+ SWIFT_ENUM_FWD_DECL(NSInteger, MasonTextType)
1296
1361
  SWIFT_CLASS_NAMED("MasonText")
1297
1362
  @interface MasonText : UIView <MasonElementObjc, MasonTextContainer>
1298
1363
  @property (nonatomic, readonly, strong) MasonNode * _Nonnull node;
@@ -1451,12 +1516,15 @@ SWIFT_CLASS_NAMED("MasonUIView")
1451
1516
  - (BOOL)isNodeDirty SWIFT_WARN_UNUSED_RESULT;
1452
1517
  - (void)layoutSubviews;
1453
1518
  - (void)willMoveToWindow:(UIWindow * _Nullable)newWindow;
1519
+ - (void)willMoveToSuperview:(UIView * _Nullable)newSuperview;
1454
1520
  - (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
1455
1521
  + (MasonUIView * _Nonnull)createGridView:(NSCMason * _Nonnull)mason SWIFT_WARN_UNUSED_RESULT;
1456
1522
  + (MasonUIView * _Nonnull)createFlexView:(NSCMason * _Nonnull)mason SWIFT_WARN_UNUSED_RESULT;
1457
1523
  + (MasonUIView * _Nonnull)createBlockView:(NSCMason * _Nonnull)mason SWIFT_WARN_UNUSED_RESULT;
1458
1524
  - (void)addView:(UIView * _Nonnull)view;
1459
1525
  - (void)addView:(UIView * _Nonnull)view at:(NSInteger)at;
1526
+ - (void)removeView:(UIView * _Nonnull)view;
1527
+ - (void)removeViewAt:(NSInteger)index;
1460
1528
  - (void)addSubviews:(NSArray<UIView *> * _Nonnull)views;
1461
1529
  - (void)addSubviews:(NSArray<UIView *> * _Nonnull)views at:(NSInteger)index;
1462
1530
  @property (nonatomic) BOOL inBatch;
@@ -1626,101 +1694,6 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) MinSizing *
1626
1694
  + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
1627
1695
  @end
1628
1696
 
1629
- SWIFT_CLASS_NAMED("NSCFontDescriptors")
1630
- @interface NSCFontDescriptors : NSObject <NSMutableCopying>
1631
- - (id _Nonnull)mutableCopyWithZone:(struct _NSZone * _Nullable)zone SWIFT_WARN_UNUSED_RESULT;
1632
- - (nonnull instancetype)initWithFamily:(NSString * _Nonnull)family OBJC_DESIGNATED_INITIALIZER;
1633
- - (void)update:(NSString * _Nonnull)value;
1634
- - (void)setFontWeight:(NSString * _Nonnull)value;
1635
- - (void)setFontStyle:(NSString * _Nonnull)value;
1636
- - (nonnull instancetype)init SWIFT_UNAVAILABLE;
1637
- + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
1638
- @end
1639
-
1640
- typedef SWIFT_ENUM_NAMED(NSInteger, NSCFontDisplay, "NSCFontDisplay", open) {
1641
- NSCFontDisplayAuto = 0,
1642
- NSCFontDisplayBlock = 1,
1643
- NSCFontDisplayFallback = 2,
1644
- NSCFontDisplayOptional = 3,
1645
- NSCFontDisplaySwap = 4,
1646
- };
1647
-
1648
- @class NSData;
1649
- enum NSCFontFaceStatus : NSInteger;
1650
- enum NSCFontWeight : NSInteger;
1651
- SWIFT_CLASS_NAMED("NSCFontFace")
1652
- @interface NSCFontFace : NSObject
1653
- @property (nonatomic, readonly) CGFontRef _Nullable font;
1654
- @property (nonatomic, readonly, strong) NSData * _Nullable fontData;
1655
- - (void)updateDescriptorWithValue:(NSString * _Nonnull)value;
1656
- + (NSCFontFace * _Nullable)loadFromStyleWithStyle:(NSString * _Nonnull)style SWIFT_WARN_UNUSED_RESULT;
1657
- + (void)importFromRemoteWithUrl:(NSString * _Nonnull)url load:(BOOL)load callback:(void (^ _Nonnull)(NSArray<NSCFontFace *> * _Nullable, NSString * _Nullable))callback;
1658
- - (nonnull instancetype)initWithFamily:(NSString * _Nonnull)family OBJC_DESIGNATED_INITIALIZER;
1659
- - (nonnull instancetype)initWithFamily:(NSString * _Nonnull)family owner:(MasonStyle * _Nonnull)style OBJC_DESIGNATED_INITIALIZER;
1660
- - (nonnull instancetype)initWithFamily:(NSString * _Nonnull)family source:(NSString * _Nonnull)source OBJC_DESIGNATED_INITIALIZER;
1661
- - (nonnull instancetype)initWithFamily:(NSString * _Nonnull)family data:(NSData * _Nonnull)source OBJC_DESIGNATED_INITIALIZER;
1662
- - (nonnull instancetype)init:(NSString * _Nonnull)family :(NSString * _Nullable)source :(NSCFontDescriptors * _Nullable)descriptors OBJC_DESIGNATED_INITIALIZER;
1663
- - (nonnull instancetype)init:(NSString * _Nonnull)family data:(NSData * _Nullable)data :(NSCFontDescriptors * _Nullable)descriptors OBJC_DESIGNATED_INITIALIZER;
1664
- @property (nonatomic) enum NSCFontFaceStatus status;
1665
- @property (nonatomic) enum NSCFontDisplay display;
1666
- - (void)setFontDisplayWithValue:(NSString * _Nonnull)value;
1667
- @property (nonatomic, copy) NSString * _Nonnull style;
1668
- - (void)setFontStyleWithValue:(NSString * _Nonnull)value angle:(NSString * _Nullable)angle;
1669
- @property (nonatomic) enum NSCFontWeight weight;
1670
- - (void)setFontWeightWithValue:(NSString * _Nonnull)value;
1671
- @property (nonatomic, readonly, copy) NSString * _Nonnull family;
1672
- @property (nonatomic, readonly, copy) NSString * _Nonnull ascentOverride;
1673
- @property (nonatomic, readonly, copy) NSString * _Nonnull descentOverride;
1674
- - (void)load:(void (^ _Nonnull)(NSString * _Nullable))callback;
1675
- - (nonnull instancetype)init SWIFT_UNAVAILABLE;
1676
- + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
1677
- @end
1678
-
1679
- enum NSCFontFaceSetStatus : NSInteger;
1680
- @class NSEnumerator;
1681
- SWIFT_CLASS_NAMED("NSCFontFaceSet")
1682
- @interface NSCFontFaceSet : NSObject
1683
- SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) NSCFontFaceSet * _Nonnull instance;)
1684
- + (NSCFontFaceSet * _Nonnull)instance SWIFT_WARN_UNUSED_RESULT;
1685
- @property (nonatomic) enum NSCFontFaceSetStatus status;
1686
- @property (nonatomic, copy) void (^ _Nullable onStatus)(enum NSCFontFaceSetStatus);
1687
- - (NSEnumerator * _Nonnull)iter SWIFT_WARN_UNUSED_RESULT;
1688
- - (NSArray * _Nonnull)array SWIFT_WARN_UNUSED_RESULT;
1689
- - (NSCFontFace * _Nonnull)get:(NSString * _Nonnull)fontFamily SWIFT_WARN_UNUSED_RESULT;
1690
- - (NSCFontFace * _Nullable)getOrNil:(NSString * _Nonnull)fontFamily SWIFT_WARN_UNUSED_RESULT;
1691
- - (void)add:(NSCFontFace * _Nonnull)font;
1692
- - (void)clear;
1693
- - (void)delete:(NSCFontFace * _Nonnull)font;
1694
- - (BOOL)check:(NSString * _Nonnull)font :(NSString * _Nullable)text SWIFT_WARN_UNUSED_RESULT;
1695
- - (void)load:(NSString * _Nonnull)font :(NSString * _Nullable)text :(void (^ _Nonnull)(NSArray<NSCFontFace *> * _Nonnull, NSString * _Nullable))callback;
1696
- @property (nonatomic, readonly) NSInteger size;
1697
- - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
1698
- @end
1699
-
1700
- typedef SWIFT_ENUM_NAMED(NSInteger, NSCFontFaceSetStatus, "NSCFontFaceSetStatus", open) {
1701
- NSCFontFaceSetStatusLoading = 0,
1702
- NSCFontFaceSetStatusLoaded = 1,
1703
- };
1704
-
1705
- typedef SWIFT_ENUM_NAMED(NSInteger, NSCFontFaceStatus, "NSCFontFaceStatus", open) {
1706
- NSCFontFaceStatusUnloaded = 0,
1707
- NSCFontFaceStatusLoading = 1,
1708
- NSCFontFaceStatusLoaded = 2,
1709
- NSCFontFaceStatusError = 3,
1710
- };
1711
-
1712
- typedef SWIFT_ENUM_NAMED(NSInteger, NSCFontWeight, "NSCFontWeight", open) {
1713
- NSCFontWeightThin = 0,
1714
- NSCFontWeightExtraLight = 1,
1715
- NSCFontWeightLight = 2,
1716
- NSCFontWeightNormal = 3,
1717
- NSCFontWeightMedium = 4,
1718
- NSCFontWeightSemiBold = 5,
1719
- NSCFontWeightBold = 6,
1720
- NSCFontWeightExtraBold = 7,
1721
- NSCFontWeightBlack = 8,
1722
- };
1723
-
1724
1697
  @class NSUUID;
1725
1698
  @class MasonScroll;
1726
1699
  SWIFT_CLASS_NAMED("NSCMason")
@@ -1810,6 +1783,13 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly) float scale;)
1810
1783
  - (void)mason_replaceChildAtText:(NSString * _Nonnull)text :(NSInteger)index;
1811
1784
  - (void)mason_replaceChildAtElement:(id <MasonElementObjc> _Nonnull)element :(NSInteger)index;
1812
1785
  - (void)mason_replaceChildAtNode:(MasonNode * _Nonnull)node :(NSInteger)index;
1786
+ /// Remove the child node (view or text node) at <code>index</code> from the mason tree.
1787
+ /// Counterpart to <code>mason_addChildAt</code>; <code>MasonNode.removeChildAt</code> already
1788
+ /// handles both <code>MasonTextNode</code> and element children.
1789
+ - (void)mason_removeChildAt:(NSInteger)index;
1790
+ /// Remove a specific child node (e.g. the <code>MasonTextNode</code> a framework stamped
1791
+ /// onto its JS text node) without needing its index.
1792
+ - (void)mason_removeChildNode:(MasonNode * _Nonnull)node;
1813
1793
  @end
1814
1794
 
1815
1795
  typedef SWIFT_ENUM_NAMED(NSInteger, MasonObjectFit, "ObjectFit", open) {
@@ -1857,6 +1837,8 @@ SWIFT_CLASS_NAMED("Scroll")
1857
1837
  - (void)scrollViewDidScroll:(UIScrollView * _Nonnull)scrollView;
1858
1838
  - (void)addView:(UIView * _Nonnull)view;
1859
1839
  - (void)addView:(UIView * _Nonnull)view at:(NSInteger)at;
1840
+ - (void)removeView:(UIView * _Nonnull)view;
1841
+ - (void)removeViewAt:(NSInteger)index;
1860
1842
  - (void)setSize:(float)width :(float)height;
1861
1843
  - (nonnull instancetype)initWithFrame:(CGRect)frame SWIFT_UNAVAILABLE;
1862
1844
  @end
@@ -1981,7 +1963,7 @@ typedef SWIFT_ENUM_NAMED(NSInteger, MasonWhiteSpace, "WhiteSpace", open) {
1981
1963
  MasonWhiteSpaceBreakSpaces = 5,
1982
1964
  };
1983
1965
 
1984
- #endif
1966
+ #endif // defined(__OBJC__)
1985
1967
  #if __has_attribute(external_source_symbol)
1986
1968
  # pragma clang attribute pop
1987
1969
  #endif
@@ -1991,7 +1973,7 @@ typedef SWIFT_ENUM_NAMED(NSInteger, MasonWhiteSpace, "WhiteSpace", open) {
1991
1973
  #endif
1992
1974
 
1993
1975
  #elif defined(__x86_64__) && __x86_64__
1994
- // Generated by Apple Swift version 6.2.3 effective-5.10 (swiftlang-6.2.3.3.21 clang-1700.6.3.2)
1976
+ // Generated by Apple Swift version 6.3.1 effective-5.10 (swiftlang-6.3.1.1.2 clang-2100.0.123.102)
1995
1977
  #ifndef MASON_SWIFT_H
1996
1978
  #define MASON_SWIFT_H
1997
1979
  #pragma clang diagnostic push
@@ -2017,7 +1999,7 @@ typedef SWIFT_ENUM_NAMED(NSInteger, MasonWhiteSpace, "WhiteSpace", open) {
2017
1999
  #pragma clang diagnostic ignored "-Wauto-import"
2018
2000
  #if defined(__OBJC__)
2019
2001
  #include <Foundation/Foundation.h>
2020
- #endif
2002
+ #endif // defined(__OBJC__)
2021
2003
  #if defined(__cplusplus)
2022
2004
  #include <cstdint>
2023
2005
  #include <cstddef>
@@ -2186,13 +2168,32 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
2186
2168
  # endif
2187
2169
  #endif
2188
2170
  #if !defined(SWIFT_ENUM)
2189
- # define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
2190
- # if __has_feature(generalized_swift_name)
2191
- # define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) enum _name : _type _name SWIFT_COMPILE_NAME(SWIFT_NAME); enum SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
2171
+ # if (defined(__cplusplus) && __cplusplus >= 201103L) || (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 202311L) || __has_feature(objc_fixed_enum)
2172
+ # define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
2173
+ # if __has_feature(generalized_swift_name)
2174
+ # define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) enum _name : _type _name SWIFT_COMPILE_NAME(SWIFT_NAME); enum SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
2175
+ # else
2176
+ # define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility)
2177
+ # endif
2192
2178
  # else
2179
+ # define SWIFT_ENUM(_type, _name, _extensibility) _type _name; enum
2193
2180
  # define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility)
2194
2181
  # endif
2195
2182
  #endif
2183
+ #if !defined(SWIFT_ENUM_TAG)
2184
+ # if (defined(__cplusplus) && __cplusplus >= 201103L) || (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 202311L) || __has_feature(objc_fixed_enum)
2185
+ # define SWIFT_ENUM_TAG enum
2186
+ # else
2187
+ # define SWIFT_ENUM_TAG
2188
+ # endif
2189
+ #endif
2190
+ #if !defined(SWIFT_ENUM_FWD_DECL)
2191
+ # if (defined(__cplusplus) && __cplusplus >= 201103L) || (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 202311L) || __has_feature(objc_fixed_enum)
2192
+ # define SWIFT_ENUM_FWD_DECL(_type, _name) enum _name : _type;
2193
+ # else
2194
+ # define SWIFT_ENUM_FWD_DECL(_type, _name) typedef _type _name;
2195
+ # endif
2196
+ #endif
2196
2197
  #if !defined(SWIFT_UNAVAILABLE)
2197
2198
  # define SWIFT_UNAVAILABLE __attribute__((unavailable))
2198
2199
  #endif
@@ -2202,6 +2203,9 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
2202
2203
  #if !defined(SWIFT_AVAILABILITY)
2203
2204
  # define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__)))
2204
2205
  #endif
2206
+ #if !defined(SWIFT_AVAILABILITY_DOMAIN)
2207
+ # define SWIFT_AVAILABILITY_DOMAIN(dom, ...) __attribute__((availability(domain: dom, __VA_ARGS__)))
2208
+ #endif
2205
2209
  #if !defined(SWIFT_WEAK_IMPORT)
2206
2210
  # define SWIFT_WEAK_IMPORT __attribute__((weak_import))
2207
2211
  #endif
@@ -2267,6 +2271,49 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
2267
2271
  # define SWIFT_IMPORT_STDLIB_SYMBOL
2268
2272
  #endif
2269
2273
  #endif
2274
+ #if !__has_feature(nullability)
2275
+ # define _Nonnull
2276
+ # define _Nullable
2277
+ # define _Null_unspecified
2278
+ #elif !defined(__OBJC__)
2279
+ # pragma clang diagnostic ignored "-Wnullability-extension"
2280
+ #endif
2281
+ #if !__has_feature(nullability_nullable_result)
2282
+ # define _Nullable_result _Nullable
2283
+ #endif
2284
+ #if __has_feature(objc_modules)
2285
+ #if __has_warning("-Watimport-in-framework-header")
2286
+ #pragma clang diagnostic ignored "-Watimport-in-framework-header"
2287
+ #endif
2288
+ #endif
2289
+
2290
+ #pragma clang diagnostic ignored "-Wproperty-attribute-mismatch"
2291
+ #pragma clang diagnostic ignored "-Wduplicate-method-arg"
2292
+ #if __has_warning("-Wpragma-clang-attribute")
2293
+ # pragma clang diagnostic ignored "-Wpragma-clang-attribute"
2294
+ #endif
2295
+ #pragma clang diagnostic ignored "-Wunknown-pragmas"
2296
+ #pragma clang diagnostic ignored "-Wnullability"
2297
+ #pragma clang diagnostic ignored "-Wdollar-in-identifier-extension"
2298
+ #pragma clang diagnostic ignored "-Wunsafe-buffer-usage"
2299
+
2300
+ #if __has_attribute(external_source_symbol)
2301
+ # pragma push_macro("any")
2302
+ # undef any
2303
+ # pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="Mason",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol))
2304
+ # pragma pop_macro("any")
2305
+ #endif
2306
+
2307
+ #if defined(__cplusplus)
2308
+ extern "C" {
2309
+ #endif
2310
+
2311
+ #if defined(__cplusplus)
2312
+ } // extern "C"
2313
+ #endif
2314
+ #if __has_attribute(external_source_symbol)
2315
+ # pragma clang attribute pop
2316
+ #endif
2270
2317
  #if defined(__OBJC__)
2271
2318
  #if __has_feature(objc_modules)
2272
2319
  #if __has_warning("-Watimport-in-framework-header")
@@ -2280,7 +2327,7 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
2280
2327
  @import UIKit;
2281
2328
  #endif
2282
2329
 
2283
- #endif
2330
+ #endif // defined(__OBJC__)
2284
2331
  #pragma clang diagnostic ignored "-Wproperty-attribute-mismatch"
2285
2332
  #pragma clang diagnostic ignored "-Wduplicate-method-arg"
2286
2333
  #if __has_warning("-Wpragma-clang-attribute")
@@ -2477,7 +2524,7 @@ typedef SWIFT_ENUM_NAMED(NSInteger, MasonGridAutoFlowWrap, "GridAutoFlow", open)
2477
2524
  MasonGridAutoFlowWrapColumnDense = 3,
2478
2525
  };
2479
2526
 
2480
- enum MasonGridPlacementCompatType : NSInteger;
2527
+ SWIFT_ENUM_FWD_DECL(NSInteger, MasonGridPlacementCompatType)
2481
2528
  SWIFT_CLASS_NAMED("GridPlacementCompat")
2482
2529
  @interface GridPlacementCompat : NSObject
2483
2530
  - (nonnull instancetype)initWithSpan:(int16_t)span OBJC_DESIGNATED_INITIALIZER;
@@ -2521,7 +2568,7 @@ SWIFT_CLASS_NAMED("HTMLParser")
2521
2568
  + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
2522
2569
  @end
2523
2570
 
2524
- enum MasonLoadingState : NSInteger;
2571
+ SWIFT_ENUM_FWD_DECL(NSInteger, MasonLoadingState)
2525
2572
  @class UIImage;
2526
2573
  SWIFT_CLASS_NAMED("Img")
2527
2574
  @interface MasonImg : UIView <MasonElementObjc>
@@ -2635,7 +2682,7 @@ SWIFT_PROTOCOL("_TtP5Mason18MasonCharacterData_")
2635
2682
  - (nonnull instancetype)replaceDataWithRange:(NSRange)range with:(NSString * _Nonnull)s;
2636
2683
  @end
2637
2684
 
2638
- enum MasonDimensionCompatType : NSInteger;
2685
+ SWIFT_ENUM_FWD_DECL(NSInteger, MasonDimensionCompatType)
2639
2686
  SWIFT_CLASS_NAMED("MasonDimensionCompat")
2640
2687
  @interface MasonDimensionCompat : NSObject
2641
2688
  - (nonnull instancetype)initWithPoints:(float)points OBJC_DESIGNATED_INITIALIZER;
@@ -2747,7 +2794,7 @@ SWIFT_CLASS("_TtC5Mason15MasonImageLayer")
2747
2794
  - (void)layoutSublayers;
2748
2795
  @end
2749
2796
 
2750
- enum MasonInputType : int8_t;
2797
+ SWIFT_ENUM_FWD_DECL(int8_t, MasonInputType)
2751
2798
  @class NSDate;
2752
2799
  SWIFT_CLASS_NAMED("MasonInput")
2753
2800
  @interface MasonInput : UIView
@@ -2835,7 +2882,7 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) MasonLayout
2835
2882
  + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
2836
2883
  @end
2837
2884
 
2838
- enum MasonLengthPercentageAutoCompatType : NSInteger;
2885
+ SWIFT_ENUM_FWD_DECL(NSInteger, MasonLengthPercentageAutoCompatType)
2839
2886
  SWIFT_CLASS_NAMED("MasonLengthPercentageAutoCompat")
2840
2887
  @interface MasonLengthPercentageAutoCompat : NSObject
2841
2888
  - (nonnull instancetype)initWithPoints:(float)points OBJC_DESIGNATED_INITIALIZER;
@@ -2885,7 +2932,7 @@ SWIFT_CLASS_NAMED("MasonLengthPercentageAutoSizeCompat")
2885
2932
  + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
2886
2933
  @end
2887
2934
 
2888
- enum MasonLengthPercentageCompatType : NSInteger;
2935
+ SWIFT_ENUM_FWD_DECL(NSInteger, MasonLengthPercentageCompatType)
2889
2936
  SWIFT_CLASS_NAMED("MasonLengthPercentageCompat")
2890
2937
  @interface MasonLengthPercentageCompat : NSObject
2891
2938
  - (nonnull instancetype)initWithPoints:(float)points OBJC_DESIGNATED_INITIALIZER;
@@ -3040,8 +3087,8 @@ SWIFT_CLASS_NAMED("MasonMouseEventOptions")
3040
3087
  - (nonnull instancetype)initWithIsComposing:(BOOL)isComposing OBJC_DESIGNATED_INITIALIZER;
3041
3088
  @end
3042
3089
 
3043
- enum PseudoState : uint16_t;
3044
- enum MasonNodeType : int32_t;
3090
+ SWIFT_ENUM_FWD_DECL(uint16_t, PseudoState)
3091
+ SWIFT_ENUM_FWD_DECL(int32_t, MasonNodeType)
3045
3092
  SWIFT_CLASS_NAMED("MasonNode")
3046
3093
  @interface MasonNode : NSObject
3047
3094
  @property (nonatomic, readonly, strong) NSCMason * _Nonnull mason;
@@ -3094,7 +3141,7 @@ typedef SWIFT_ENUM_NAMED(int32_t, MasonNodeType, "MasonNodeType", open) {
3094
3141
  MasonNodeTypeDocument = 2,
3095
3142
  };
3096
3143
 
3097
- enum MasonOverflow : NSInteger;
3144
+ SWIFT_ENUM_FWD_DECL(NSInteger, MasonOverflow)
3098
3145
  SWIFT_CLASS_NAMED("MasonOverflowPointCompat")
3099
3146
  @interface MasonOverflowPointCompat : NSObject
3100
3147
  @property (nonatomic) enum MasonOverflow x;
@@ -3125,15 +3172,15 @@ SWIFT_CLASS_NAMED("MasonSizeHelper")
3125
3172
 
3126
3173
  @class NSCFontFace;
3127
3174
  @class MasonVerticalAlignValue;
3128
- enum MasonObjectFit : NSInteger;
3175
+ SWIFT_ENUM_FWD_DECL(NSInteger, MasonObjectFit)
3129
3176
  @class UIColor;
3130
- enum MasonTextJustify : NSInteger;
3177
+ SWIFT_ENUM_FWD_DECL(NSInteger, MasonTextJustify)
3131
3178
  @class MasonTextOverflowCompat;
3132
- enum MasonTextTransform : NSInteger;
3133
- enum MasonWhiteSpace : NSInteger;
3134
- enum MasonTextWrap : NSInteger;
3135
- enum MasonPosition : NSInteger;
3136
- enum MasonTextAlign : NSInteger;
3179
+ SWIFT_ENUM_FWD_DECL(NSInteger, MasonTextTransform)
3180
+ SWIFT_ENUM_FWD_DECL(NSInteger, MasonWhiteSpace)
3181
+ SWIFT_ENUM_FWD_DECL(NSInteger, MasonTextWrap)
3182
+ SWIFT_ENUM_FWD_DECL(NSInteger, MasonPosition)
3183
+ SWIFT_ENUM_FWD_DECL(NSInteger, MasonTextAlign)
3137
3184
  SWIFT_CLASS_NAMED("MasonStyle")
3138
3185
  @interface MasonStyle : NSObject
3139
3186
  @property (nonatomic, readonly, strong) NSCFontFace * _Null_unspecified font;
@@ -3283,7 +3330,7 @@ SWIFT_CLASS_NAMED("MasonStyle")
3283
3330
  + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
3284
3331
  @end
3285
3332
 
3286
- enum MasonTextType : NSInteger;
3333
+ SWIFT_ENUM_FWD_DECL(NSInteger, MasonTextType)
3287
3334
  SWIFT_CLASS_NAMED("MasonText")
3288
3335
  @interface MasonText : UIView <MasonElementObjc, MasonTextContainer>
3289
3336
  @property (nonatomic, readonly, strong) MasonNode * _Nonnull node;
@@ -3442,12 +3489,15 @@ SWIFT_CLASS_NAMED("MasonUIView")
3442
3489
  - (BOOL)isNodeDirty SWIFT_WARN_UNUSED_RESULT;
3443
3490
  - (void)layoutSubviews;
3444
3491
  - (void)willMoveToWindow:(UIWindow * _Nullable)newWindow;
3492
+ - (void)willMoveToSuperview:(UIView * _Nullable)newSuperview;
3445
3493
  - (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
3446
3494
  + (MasonUIView * _Nonnull)createGridView:(NSCMason * _Nonnull)mason SWIFT_WARN_UNUSED_RESULT;
3447
3495
  + (MasonUIView * _Nonnull)createFlexView:(NSCMason * _Nonnull)mason SWIFT_WARN_UNUSED_RESULT;
3448
3496
  + (MasonUIView * _Nonnull)createBlockView:(NSCMason * _Nonnull)mason SWIFT_WARN_UNUSED_RESULT;
3449
3497
  - (void)addView:(UIView * _Nonnull)view;
3450
3498
  - (void)addView:(UIView * _Nonnull)view at:(NSInteger)at;
3499
+ - (void)removeView:(UIView * _Nonnull)view;
3500
+ - (void)removeViewAt:(NSInteger)index;
3451
3501
  - (void)addSubviews:(NSArray<UIView *> * _Nonnull)views;
3452
3502
  - (void)addSubviews:(NSArray<UIView *> * _Nonnull)views at:(NSInteger)index;
3453
3503
  @property (nonatomic) BOOL inBatch;
@@ -3617,101 +3667,6 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) MinSizing *
3617
3667
  + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
3618
3668
  @end
3619
3669
 
3620
- SWIFT_CLASS_NAMED("NSCFontDescriptors")
3621
- @interface NSCFontDescriptors : NSObject <NSMutableCopying>
3622
- - (id _Nonnull)mutableCopyWithZone:(struct _NSZone * _Nullable)zone SWIFT_WARN_UNUSED_RESULT;
3623
- - (nonnull instancetype)initWithFamily:(NSString * _Nonnull)family OBJC_DESIGNATED_INITIALIZER;
3624
- - (void)update:(NSString * _Nonnull)value;
3625
- - (void)setFontWeight:(NSString * _Nonnull)value;
3626
- - (void)setFontStyle:(NSString * _Nonnull)value;
3627
- - (nonnull instancetype)init SWIFT_UNAVAILABLE;
3628
- + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
3629
- @end
3630
-
3631
- typedef SWIFT_ENUM_NAMED(NSInteger, NSCFontDisplay, "NSCFontDisplay", open) {
3632
- NSCFontDisplayAuto = 0,
3633
- NSCFontDisplayBlock = 1,
3634
- NSCFontDisplayFallback = 2,
3635
- NSCFontDisplayOptional = 3,
3636
- NSCFontDisplaySwap = 4,
3637
- };
3638
-
3639
- @class NSData;
3640
- enum NSCFontFaceStatus : NSInteger;
3641
- enum NSCFontWeight : NSInteger;
3642
- SWIFT_CLASS_NAMED("NSCFontFace")
3643
- @interface NSCFontFace : NSObject
3644
- @property (nonatomic, readonly) CGFontRef _Nullable font;
3645
- @property (nonatomic, readonly, strong) NSData * _Nullable fontData;
3646
- - (void)updateDescriptorWithValue:(NSString * _Nonnull)value;
3647
- + (NSCFontFace * _Nullable)loadFromStyleWithStyle:(NSString * _Nonnull)style SWIFT_WARN_UNUSED_RESULT;
3648
- + (void)importFromRemoteWithUrl:(NSString * _Nonnull)url load:(BOOL)load callback:(void (^ _Nonnull)(NSArray<NSCFontFace *> * _Nullable, NSString * _Nullable))callback;
3649
- - (nonnull instancetype)initWithFamily:(NSString * _Nonnull)family OBJC_DESIGNATED_INITIALIZER;
3650
- - (nonnull instancetype)initWithFamily:(NSString * _Nonnull)family owner:(MasonStyle * _Nonnull)style OBJC_DESIGNATED_INITIALIZER;
3651
- - (nonnull instancetype)initWithFamily:(NSString * _Nonnull)family source:(NSString * _Nonnull)source OBJC_DESIGNATED_INITIALIZER;
3652
- - (nonnull instancetype)initWithFamily:(NSString * _Nonnull)family data:(NSData * _Nonnull)source OBJC_DESIGNATED_INITIALIZER;
3653
- - (nonnull instancetype)init:(NSString * _Nonnull)family :(NSString * _Nullable)source :(NSCFontDescriptors * _Nullable)descriptors OBJC_DESIGNATED_INITIALIZER;
3654
- - (nonnull instancetype)init:(NSString * _Nonnull)family data:(NSData * _Nullable)data :(NSCFontDescriptors * _Nullable)descriptors OBJC_DESIGNATED_INITIALIZER;
3655
- @property (nonatomic) enum NSCFontFaceStatus status;
3656
- @property (nonatomic) enum NSCFontDisplay display;
3657
- - (void)setFontDisplayWithValue:(NSString * _Nonnull)value;
3658
- @property (nonatomic, copy) NSString * _Nonnull style;
3659
- - (void)setFontStyleWithValue:(NSString * _Nonnull)value angle:(NSString * _Nullable)angle;
3660
- @property (nonatomic) enum NSCFontWeight weight;
3661
- - (void)setFontWeightWithValue:(NSString * _Nonnull)value;
3662
- @property (nonatomic, readonly, copy) NSString * _Nonnull family;
3663
- @property (nonatomic, readonly, copy) NSString * _Nonnull ascentOverride;
3664
- @property (nonatomic, readonly, copy) NSString * _Nonnull descentOverride;
3665
- - (void)load:(void (^ _Nonnull)(NSString * _Nullable))callback;
3666
- - (nonnull instancetype)init SWIFT_UNAVAILABLE;
3667
- + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
3668
- @end
3669
-
3670
- enum NSCFontFaceSetStatus : NSInteger;
3671
- @class NSEnumerator;
3672
- SWIFT_CLASS_NAMED("NSCFontFaceSet")
3673
- @interface NSCFontFaceSet : NSObject
3674
- SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) NSCFontFaceSet * _Nonnull instance;)
3675
- + (NSCFontFaceSet * _Nonnull)instance SWIFT_WARN_UNUSED_RESULT;
3676
- @property (nonatomic) enum NSCFontFaceSetStatus status;
3677
- @property (nonatomic, copy) void (^ _Nullable onStatus)(enum NSCFontFaceSetStatus);
3678
- - (NSEnumerator * _Nonnull)iter SWIFT_WARN_UNUSED_RESULT;
3679
- - (NSArray * _Nonnull)array SWIFT_WARN_UNUSED_RESULT;
3680
- - (NSCFontFace * _Nonnull)get:(NSString * _Nonnull)fontFamily SWIFT_WARN_UNUSED_RESULT;
3681
- - (NSCFontFace * _Nullable)getOrNil:(NSString * _Nonnull)fontFamily SWIFT_WARN_UNUSED_RESULT;
3682
- - (void)add:(NSCFontFace * _Nonnull)font;
3683
- - (void)clear;
3684
- - (void)delete:(NSCFontFace * _Nonnull)font;
3685
- - (BOOL)check:(NSString * _Nonnull)font :(NSString * _Nullable)text SWIFT_WARN_UNUSED_RESULT;
3686
- - (void)load:(NSString * _Nonnull)font :(NSString * _Nullable)text :(void (^ _Nonnull)(NSArray<NSCFontFace *> * _Nonnull, NSString * _Nullable))callback;
3687
- @property (nonatomic, readonly) NSInteger size;
3688
- - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
3689
- @end
3690
-
3691
- typedef SWIFT_ENUM_NAMED(NSInteger, NSCFontFaceSetStatus, "NSCFontFaceSetStatus", open) {
3692
- NSCFontFaceSetStatusLoading = 0,
3693
- NSCFontFaceSetStatusLoaded = 1,
3694
- };
3695
-
3696
- typedef SWIFT_ENUM_NAMED(NSInteger, NSCFontFaceStatus, "NSCFontFaceStatus", open) {
3697
- NSCFontFaceStatusUnloaded = 0,
3698
- NSCFontFaceStatusLoading = 1,
3699
- NSCFontFaceStatusLoaded = 2,
3700
- NSCFontFaceStatusError = 3,
3701
- };
3702
-
3703
- typedef SWIFT_ENUM_NAMED(NSInteger, NSCFontWeight, "NSCFontWeight", open) {
3704
- NSCFontWeightThin = 0,
3705
- NSCFontWeightExtraLight = 1,
3706
- NSCFontWeightLight = 2,
3707
- NSCFontWeightNormal = 3,
3708
- NSCFontWeightMedium = 4,
3709
- NSCFontWeightSemiBold = 5,
3710
- NSCFontWeightBold = 6,
3711
- NSCFontWeightExtraBold = 7,
3712
- NSCFontWeightBlack = 8,
3713
- };
3714
-
3715
3670
  @class NSUUID;
3716
3671
  @class MasonScroll;
3717
3672
  SWIFT_CLASS_NAMED("NSCMason")
@@ -3801,6 +3756,13 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly) float scale;)
3801
3756
  - (void)mason_replaceChildAtText:(NSString * _Nonnull)text :(NSInteger)index;
3802
3757
  - (void)mason_replaceChildAtElement:(id <MasonElementObjc> _Nonnull)element :(NSInteger)index;
3803
3758
  - (void)mason_replaceChildAtNode:(MasonNode * _Nonnull)node :(NSInteger)index;
3759
+ /// Remove the child node (view or text node) at <code>index</code> from the mason tree.
3760
+ /// Counterpart to <code>mason_addChildAt</code>; <code>MasonNode.removeChildAt</code> already
3761
+ /// handles both <code>MasonTextNode</code> and element children.
3762
+ - (void)mason_removeChildAt:(NSInteger)index;
3763
+ /// Remove a specific child node (e.g. the <code>MasonTextNode</code> a framework stamped
3764
+ /// onto its JS text node) without needing its index.
3765
+ - (void)mason_removeChildNode:(MasonNode * _Nonnull)node;
3804
3766
  @end
3805
3767
 
3806
3768
  typedef SWIFT_ENUM_NAMED(NSInteger, MasonObjectFit, "ObjectFit", open) {
@@ -3848,6 +3810,8 @@ SWIFT_CLASS_NAMED("Scroll")
3848
3810
  - (void)scrollViewDidScroll:(UIScrollView * _Nonnull)scrollView;
3849
3811
  - (void)addView:(UIView * _Nonnull)view;
3850
3812
  - (void)addView:(UIView * _Nonnull)view at:(NSInteger)at;
3813
+ - (void)removeView:(UIView * _Nonnull)view;
3814
+ - (void)removeViewAt:(NSInteger)index;
3851
3815
  - (void)setSize:(float)width :(float)height;
3852
3816
  - (nonnull instancetype)initWithFrame:(CGRect)frame SWIFT_UNAVAILABLE;
3853
3817
  @end
@@ -3972,7 +3936,7 @@ typedef SWIFT_ENUM_NAMED(NSInteger, MasonWhiteSpace, "WhiteSpace", open) {
3972
3936
  MasonWhiteSpaceBreakSpaces = 5,
3973
3937
  };
3974
3938
 
3975
- #endif
3939
+ #endif // defined(__OBJC__)
3976
3940
  #if __has_attribute(external_source_symbol)
3977
3941
  # pragma clang attribute pop
3978
3942
  #endif