@triniwiz/nativescript-masonkit 1.0.0-alpha.35 → 1.0.0-alpha.36
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.
- package/common.d.ts +1 -0
- package/common.js +74 -2
- package/common.js.map +1 -1
- package/package.json +1 -1
- package/platforms/android/masonkit-release.aar +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Headers/Mason-Swift.h +103 -50
- package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Headers/mason_native.h +50 -76
- package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Mason +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/Project/arm64-apple-ios.swiftsourceinfo +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios.abi.json +44690 -33943
- package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios.private.swiftinterface +283 -129
- package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios.swiftinterface +283 -129
- package/platforms/ios/Mason.xcframework/ios-arm64/dSYMs/Mason.framework.dSYM/Contents/Resources/DWARF/Mason +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64/dSYMs/Mason.framework.dSYM/Contents/Resources/Relocations/aarch64/Mason.yml +4116 -3259
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Headers/Mason-Swift.h +206 -100
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Headers/mason_native.h +50 -76
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Mason +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/Project/arm64-apple-ios-simulator.swiftsourceinfo +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/Project/x86_64-apple-ios-simulator.swiftsourceinfo +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios-simulator.abi.json +44690 -33943
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +283 -129
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios-simulator.swiftinterface +283 -129
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/x86_64-apple-ios-simulator.abi.json +44690 -33943
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +283 -129
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +283 -129
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/_CodeSignature/CodeResources +28 -28
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/dSYMs/Mason.framework.dSYM/Contents/Resources/DWARF/Mason +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/dSYMs/Mason.framework.dSYM/Contents/Resources/Relocations/aarch64/Mason.yml +4111 -3259
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/dSYMs/Mason.framework.dSYM/Contents/Resources/Relocations/x86_64/Mason.yml +3984 -3181
- package/style.d.ts +15 -14
- package/style.js +226 -22
- package/style.js.map +1 -1
- package/utils/index.android.js +1 -2
- package/utils/index.android.js.map +1 -1
- package/utils/index.ios.js +48 -48
- package/utils/index.ios.js.map +1 -1
|
@@ -285,6 +285,7 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
|
|
|
285
285
|
@import CoreGraphics;
|
|
286
286
|
@import Foundation;
|
|
287
287
|
@import ObjectiveC;
|
|
288
|
+
@import QuartzCore;
|
|
288
289
|
@import UIKit;
|
|
289
290
|
#endif
|
|
290
291
|
|
|
@@ -350,11 +351,28 @@ typedef SWIFT_ENUM_NAMED(NSInteger, MasonAlignSelf, "AlignSelf", open) {
|
|
|
350
351
|
MasonAlignSelfFlexEnd = 6,
|
|
351
352
|
};
|
|
352
353
|
|
|
354
|
+
@class NSCoder;
|
|
355
|
+
SWIFT_CLASS("_TtC5Mason17BackgroundCALayer")
|
|
356
|
+
@interface BackgroundCALayer : CALayer
|
|
357
|
+
- (void)drawInContext:(CGContextRef _Nonnull)ctx;
|
|
358
|
+
- (void)layoutSublayers;
|
|
359
|
+
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
|
|
360
|
+
- (nonnull instancetype)initWithLayer:(id _Nonnull)layer OBJC_DESIGNATED_INITIALIZER;
|
|
361
|
+
- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder OBJC_DESIGNATED_INITIALIZER;
|
|
362
|
+
@end
|
|
363
|
+
|
|
353
364
|
typedef SWIFT_ENUM_NAMED(NSInteger, MasonBoxSizing, "BoxSizing", open) {
|
|
354
365
|
MasonBoxSizingBorderBox = 0,
|
|
355
366
|
MasonBoxSizingContentBox = 1,
|
|
356
367
|
};
|
|
357
368
|
|
|
369
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, MasonClear, "Clear", open) {
|
|
370
|
+
MasonClearNone = 0,
|
|
371
|
+
MasonClearLeft = 1,
|
|
372
|
+
MasonClearRight = 2,
|
|
373
|
+
MasonClearBoth = 3,
|
|
374
|
+
};
|
|
375
|
+
|
|
358
376
|
typedef SWIFT_ENUM_NAMED(NSInteger, MasonDecorationLine, "DecorationLine", open) {
|
|
359
377
|
MasonDecorationLineNone = 0,
|
|
360
378
|
MasonDecorationLineUnderline = 1,
|
|
@@ -451,7 +469,6 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) MasonGridTra
|
|
|
451
469
|
|
|
452
470
|
@class MasonStyle;
|
|
453
471
|
@class MasonNode;
|
|
454
|
-
@class UIView;
|
|
455
472
|
SWIFT_PROTOCOL("_TtP5Mason16MasonElementObjc_")
|
|
456
473
|
@protocol MasonElementObjc <NSObject>
|
|
457
474
|
@property (nonatomic, readonly, strong) MasonStyle * _Nonnull style;
|
|
@@ -462,21 +479,22 @@ SWIFT_PROTOCOL("_TtP5Mason16MasonElementObjc_")
|
|
|
462
479
|
@class NSCMason;
|
|
463
480
|
enum MasonLoadingState : NSInteger;
|
|
464
481
|
@class UIImage;
|
|
465
|
-
@class NSCoder;
|
|
466
482
|
SWIFT_CLASS_NAMED("Img")
|
|
467
|
-
@interface MasonImg :
|
|
483
|
+
@interface MasonImg : UIView <MasonElementObjc>
|
|
468
484
|
@property (nonatomic, readonly, strong) MasonNode * _Nonnull node;
|
|
469
485
|
@property (nonatomic, readonly, strong) NSCMason * _Nonnull mason;
|
|
470
486
|
@property (nonatomic, readonly, strong) UIView * _Nonnull uiView;
|
|
471
487
|
@property (nonatomic, readonly, strong) MasonStyle * _Nonnull style;
|
|
472
488
|
@property (nonatomic, copy) void (^ _Nullable didLayout)(void);
|
|
473
489
|
@property (nonatomic, copy) void (^ _Nullable onStateChange)(enum MasonLoadingState, NSError * _Nullable);
|
|
490
|
+
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly) Class _Nonnull layerClass;)
|
|
491
|
+
+ (Class _Nonnull)layerClass SWIFT_WARN_UNUSED_RESULT;
|
|
474
492
|
@property (nonatomic, strong) UIImage * _Nullable image;
|
|
493
|
+
- (void)requestLayout;
|
|
494
|
+
- (void)setNeedsDisplay;
|
|
475
495
|
@property (nonatomic, copy) NSString * _Nullable src;
|
|
476
496
|
- (void)updateImage:(UIImage * _Nullable)image;
|
|
477
497
|
- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
|
|
478
|
-
- (nonnull instancetype)initWithImage:(UIImage * _Nullable)image SWIFT_UNAVAILABLE;
|
|
479
|
-
- (nonnull instancetype)initWithImage:(UIImage * _Nullable)image highlightedImage:(UIImage * _Nullable)highlightedImage SWIFT_UNAVAILABLE;
|
|
480
498
|
- (nonnull instancetype)initWithFrame:(CGRect)frame SWIFT_UNAVAILABLE;
|
|
481
499
|
@end
|
|
482
500
|
|
|
@@ -608,6 +626,20 @@ SWIFT_CLASS_NAMED("MasonDocument")
|
|
|
608
626
|
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
609
627
|
@end
|
|
610
628
|
|
|
629
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, MasonFloat, "MasonFloat", open) {
|
|
630
|
+
MasonFloatNone = 0,
|
|
631
|
+
MasonFloatLeft = 1,
|
|
632
|
+
MasonFloatRight = 2,
|
|
633
|
+
};
|
|
634
|
+
|
|
635
|
+
SWIFT_CLASS("_TtC5Mason15MasonImageLayer")
|
|
636
|
+
@interface MasonImageLayer : CALayer
|
|
637
|
+
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
|
|
638
|
+
- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
|
|
639
|
+
- (void)drawInContext:(CGContextRef _Nonnull)context;
|
|
640
|
+
- (nonnull instancetype)initWithLayer:(id _Nonnull)layer SWIFT_UNAVAILABLE;
|
|
641
|
+
@end
|
|
642
|
+
|
|
611
643
|
SWIFT_CLASS_NAMED("MasonLayout")
|
|
612
644
|
@interface MasonLayout : NSObject
|
|
613
645
|
@property (nonatomic, readonly) NSInteger order;
|
|
@@ -768,6 +800,7 @@ SWIFT_CLASS_NAMED("MasonOverflowPointCompat")
|
|
|
768
800
|
|
|
769
801
|
@class NSCFontFace;
|
|
770
802
|
@class NSMutableData;
|
|
803
|
+
enum MasonObjectFit : NSInteger;
|
|
771
804
|
@class UIColor;
|
|
772
805
|
enum MasonTextJustify : NSInteger;
|
|
773
806
|
@class MasonTextOverflowCompat;
|
|
@@ -776,16 +809,19 @@ enum MasonWhiteSpace : NSInteger;
|
|
|
776
809
|
enum MasonTextWrap : NSInteger;
|
|
777
810
|
enum MasonPosition : NSInteger;
|
|
778
811
|
enum MasonTextAlign : NSInteger;
|
|
779
|
-
@class MinMax;
|
|
780
|
-
@class TrackSizingFunction;
|
|
781
812
|
SWIFT_CLASS_NAMED("MasonStyle")
|
|
782
813
|
@interface MasonStyle : NSObject
|
|
783
814
|
@property (nonatomic, readonly, strong) NSCFontFace * _Nonnull font;
|
|
784
815
|
@property (nonatomic, strong) NSMutableData * _Nonnull values;
|
|
785
816
|
@property (nonatomic, strong) NSMutableData * _Nonnull textValues;
|
|
786
817
|
- (nonnull instancetype)initWithNode:(MasonNode * _Nonnull)node OBJC_DESIGNATED_INITIALIZER;
|
|
818
|
+
@property (nonatomic) enum MasonObjectFit objectFit;
|
|
819
|
+
@property (nonatomic, getter=float, setter=setFloat:) enum MasonFloat float_;
|
|
820
|
+
@property (nonatomic) enum MasonClear clear;
|
|
787
821
|
@property (nonatomic) uint32_t color;
|
|
788
822
|
- (void)setColorWithUi:(UIColor * _Nonnull)color;
|
|
823
|
+
@property (nonatomic, copy) NSString * _Nonnull filter;
|
|
824
|
+
@property (nonatomic, copy) NSString * _Nonnull background;
|
|
789
825
|
@property (nonatomic) uint32_t backgroundColor;
|
|
790
826
|
- (void)setBackgroundColorWithUi:(UIColor * _Nonnull)color;
|
|
791
827
|
- (void)setLineHeight:(float)value :(BOOL)isRelative;
|
|
@@ -798,6 +834,7 @@ SWIFT_CLASS_NAMED("MasonStyle")
|
|
|
798
834
|
- (void)setFontStyle:(enum MasonFontStyle)style :(int32_t)slant;
|
|
799
835
|
@property (nonatomic) enum MasonTextJustify textJustify;
|
|
800
836
|
@property (nonatomic) enum MasonFontStyle fontStyle;
|
|
837
|
+
@property (nonatomic, copy) NSString * _Nonnull fontFamily;
|
|
801
838
|
@property (nonatomic, copy) NSString * _Nonnull fontWeight;
|
|
802
839
|
@property (nonatomic, strong) MasonTextOverflowCompat * _Nonnull textOverflowCompat;
|
|
803
840
|
@property (nonatomic) enum MasonTextTransform textTransform;
|
|
@@ -835,12 +872,13 @@ SWIFT_CLASS_NAMED("MasonStyle")
|
|
|
835
872
|
- (void)setPaddingTop:(float)value :(NSInteger)type;
|
|
836
873
|
- (void)setPaddingBottom:(float)value :(NSInteger)type;
|
|
837
874
|
- (void)setPaddingWithValueType:(float)value :(NSInteger)type;
|
|
838
|
-
@property (nonatomic,
|
|
839
|
-
|
|
840
|
-
- (void)
|
|
841
|
-
- (void)
|
|
842
|
-
- (void)
|
|
843
|
-
- (void)
|
|
875
|
+
@property (nonatomic, copy) NSString * _Nonnull border;
|
|
876
|
+
@property (nonatomic, strong) MasonLengthPercentageRectCompat * _Nonnull borderWidthCompat;
|
|
877
|
+
- (void)setBorderLeftWidth:(float)value :(NSInteger)type;
|
|
878
|
+
- (void)setBorderRightWidth:(float)value :(NSInteger)type;
|
|
879
|
+
- (void)setBorderTopWidth:(float)value :(NSInteger)type;
|
|
880
|
+
- (void)setBorderBottomWidth:(float)value :(NSInteger)type;
|
|
881
|
+
- (void)setBorderWidth:(float)value :(NSInteger)type;
|
|
844
882
|
@property (nonatomic) float flexGrow;
|
|
845
883
|
@property (nonatomic) float flexShrink;
|
|
846
884
|
- (void)setFlexBasis:(float)value :(NSInteger)type;
|
|
@@ -867,19 +905,19 @@ SWIFT_CLASS_NAMED("MasonStyle")
|
|
|
867
905
|
- (void)setGapColumn:(float)value :(NSInteger)type;
|
|
868
906
|
- (void)setRowGap:(float)value :(NSInteger)type;
|
|
869
907
|
- (void)setColumnGap:(float)value :(NSInteger)type;
|
|
870
|
-
@property (nonatomic, copy)
|
|
871
|
-
@property (nonatomic, copy)
|
|
908
|
+
@property (nonatomic, copy) NSString * _Nonnull gridArea;
|
|
909
|
+
@property (nonatomic, copy) NSString * _Nonnull gridTemplateAreas;
|
|
910
|
+
@property (nonatomic, copy) NSString * _Nonnull gridAutoRows;
|
|
911
|
+
@property (nonatomic, copy) NSString * _Nonnull gridAutoColumns;
|
|
872
912
|
@property (nonatomic) enum MasonGridAutoFlowWrap gridAutoFlow;
|
|
873
|
-
@property (nonatomic,
|
|
874
|
-
@property (nonatomic,
|
|
875
|
-
@property (nonatomic,
|
|
876
|
-
@property (nonatomic,
|
|
877
|
-
@property (nonatomic,
|
|
878
|
-
@property (nonatomic,
|
|
879
|
-
@property (nonatomic,
|
|
880
|
-
@property (nonatomic, copy)
|
|
881
|
-
@property (nonatomic, readonly, copy) NSString * _Nonnull gridTemplateColumnsCSS;
|
|
882
|
-
@property (nonatomic, copy) NSArray<TrackSizingFunction *> * _Nonnull gridTemplateColumns;
|
|
913
|
+
@property (nonatomic, copy) NSString * _Nonnull gridColumn;
|
|
914
|
+
@property (nonatomic, copy) NSString * _Nonnull gridColumnStart;
|
|
915
|
+
@property (nonatomic, copy) NSString * _Nonnull gridColumnEnd;
|
|
916
|
+
@property (nonatomic, copy) NSString * _Nonnull gridRow;
|
|
917
|
+
@property (nonatomic, copy) NSString * _Nonnull gridRowStart;
|
|
918
|
+
@property (nonatomic, copy) NSString * _Nonnull gridRowEnd;
|
|
919
|
+
@property (nonatomic, copy) NSString * _Nonnull gridTemplateRows;
|
|
920
|
+
@property (nonatomic, copy) NSString * _Nonnull gridTemplateColumns;
|
|
883
921
|
- (void)updateNativeStyle;
|
|
884
922
|
@property (nonatomic, readonly, copy) NSString * _Nonnull description;
|
|
885
923
|
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
|
@@ -891,6 +929,8 @@ SWIFT_CLASS_NAMED("MasonText")
|
|
|
891
929
|
@interface MasonText : UIView <MasonElementObjc>
|
|
892
930
|
@property (nonatomic, readonly, strong) MasonNode * _Nonnull node;
|
|
893
931
|
@property (nonatomic, readonly) enum MasonTextType type;
|
|
932
|
+
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly) Class _Nonnull layerClass;)
|
|
933
|
+
+ (Class _Nonnull)layerClass SWIFT_WARN_UNUSED_RESULT;
|
|
894
934
|
@property (nonatomic, readonly, strong) NSMutableData * _Nonnull textValues;
|
|
895
935
|
@property (nonatomic, readonly, strong) UIView * _Nonnull uiView;
|
|
896
936
|
@property (nonatomic, readonly, strong) MasonStyle * _Nonnull style;
|
|
@@ -917,6 +957,8 @@ SWIFT_CLASS_NAMED("MasonText")
|
|
|
917
957
|
@property (nonatomic) enum MasonWhiteSpace whiteSpace;
|
|
918
958
|
@property (nonatomic) enum MasonTextWrap textWrap;
|
|
919
959
|
@property (nonatomic) float lineHeight;
|
|
960
|
+
/// Text content - sets or gets the concatenated text from all text nodes
|
|
961
|
+
@property (nonatomic, copy) NSString * _Nonnull textContent;
|
|
920
962
|
- (nonnull instancetype)initWithFrame:(CGRect)frame SWIFT_UNAVAILABLE;
|
|
921
963
|
@end
|
|
922
964
|
|
|
@@ -924,20 +966,19 @@ SWIFT_CLASS_NAMED("MasonText")
|
|
|
924
966
|
- (void)addChild:(MasonNode * _Nonnull)child;
|
|
925
967
|
@end
|
|
926
968
|
|
|
927
|
-
@interface MasonText (SWIFT_EXTENSION(Mason))
|
|
928
|
-
/// Text content - sets or gets the concatenated text from all text nodes
|
|
929
|
-
@property (nonatomic, copy) NSString * _Nonnull text;
|
|
930
|
-
@end
|
|
931
|
-
|
|
932
|
-
@interface MasonText (SWIFT_EXTENSION(Mason))
|
|
933
|
-
- (void)drawRect:(CGRect)rect;
|
|
934
|
-
@end
|
|
935
|
-
|
|
936
969
|
@interface MasonText (SWIFT_EXTENSION(Mason))
|
|
937
970
|
/// Remove child from text container
|
|
938
971
|
- (MasonNode * _Nullable)removeChild:(MasonNode * _Nonnull)child;
|
|
939
972
|
@end
|
|
940
973
|
|
|
974
|
+
SWIFT_CLASS("_TtC5Mason14MasonTextLayer")
|
|
975
|
+
@interface MasonTextLayer : CALayer
|
|
976
|
+
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
|
|
977
|
+
- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
|
|
978
|
+
- (void)drawInContext:(CGContextRef _Nonnull)context;
|
|
979
|
+
- (nonnull instancetype)initWithLayer:(id _Nonnull)layer SWIFT_UNAVAILABLE;
|
|
980
|
+
@end
|
|
981
|
+
|
|
941
982
|
SWIFT_CLASS_NAMED("MasonTextNode")
|
|
942
983
|
@interface MasonTextNode : MasonNode <MasonCharacterData>
|
|
943
984
|
@property (nonatomic, copy) NSString * _Nonnull data;
|
|
@@ -994,6 +1035,7 @@ SWIFT_CLASS_NAMED("MasonUIView")
|
|
|
994
1035
|
- (void)addSubviews:(NSArray<UIView *> * _Nonnull)views;
|
|
995
1036
|
- (void)addSubviews:(NSArray<UIView *> * _Nonnull)views at:(NSInteger)index;
|
|
996
1037
|
@property (nonatomic) BOOL inBatch;
|
|
1038
|
+
@property (nonatomic, copy) NSString * _Nonnull background;
|
|
997
1039
|
@property (nonatomic) enum MasonDisplay display;
|
|
998
1040
|
@property (nonatomic) enum MasonPosition _position;
|
|
999
1041
|
@property (nonatomic) enum MasonDirection direction;
|
|
@@ -1012,17 +1054,19 @@ SWIFT_CLASS_NAMED("MasonUIView")
|
|
|
1012
1054
|
@property (nonatomic, strong) MasonDimensionCompat * _Nonnull scrollBarWidthCompat;
|
|
1013
1055
|
@property (nonatomic, strong) MasonDimensionCompat * _Nonnull flexBasisCompat;
|
|
1014
1056
|
@property (nonatomic) float aspectRatio;
|
|
1015
|
-
@property (nonatomic, copy)
|
|
1016
|
-
@property (nonatomic, copy)
|
|
1057
|
+
@property (nonatomic, copy) NSString * _Nonnull gridArea;
|
|
1058
|
+
@property (nonatomic, copy) NSString * _Nonnull gridTemplateAreas;
|
|
1059
|
+
@property (nonatomic, copy) NSString * _Nonnull gridAutoRows;
|
|
1060
|
+
@property (nonatomic, copy) NSString * _Nonnull gridAutoColumns;
|
|
1017
1061
|
@property (nonatomic) enum MasonGridAutoFlowWrap gridAutoFlow;
|
|
1018
|
-
@property (nonatomic,
|
|
1019
|
-
@property (nonatomic,
|
|
1020
|
-
@property (nonatomic,
|
|
1021
|
-
@property (nonatomic,
|
|
1022
|
-
@property (nonatomic,
|
|
1023
|
-
@property (nonatomic,
|
|
1024
|
-
@property (nonatomic, copy)
|
|
1025
|
-
@property (nonatomic, copy)
|
|
1062
|
+
@property (nonatomic, copy) NSString * _Nonnull gridColumn;
|
|
1063
|
+
@property (nonatomic, copy) NSString * _Nonnull gridColumnStart;
|
|
1064
|
+
@property (nonatomic, copy) NSString * _Nonnull gridColumnEnd;
|
|
1065
|
+
@property (nonatomic, copy) NSString * _Nonnull gridRow;
|
|
1066
|
+
@property (nonatomic, copy) NSString * _Nonnull gridRowStart;
|
|
1067
|
+
@property (nonatomic, copy) NSString * _Nonnull gridRowEnd;
|
|
1068
|
+
@property (nonatomic, copy) NSString * _Nonnull gridTemplateRows;
|
|
1069
|
+
@property (nonatomic, copy) NSString * _Nonnull gridTemplateColumns;
|
|
1026
1070
|
- (void)setPadding:(float)left :(float)right :(float)top :(float)bottom;
|
|
1027
1071
|
- (MasonLengthPercentageRectCompat * _Nonnull)getPadding SWIFT_WARN_UNUSED_RESULT;
|
|
1028
1072
|
- (void)setPaddingLeft:(float)left :(NSInteger)type;
|
|
@@ -1033,12 +1077,12 @@ SWIFT_CLASS_NAMED("MasonUIView")
|
|
|
1033
1077
|
- (MasonLengthPercentageCompat * _Nonnull)getPaddingRight SWIFT_WARN_UNUSED_RESULT;
|
|
1034
1078
|
- (MasonLengthPercentageCompat * _Nonnull)getPaddingTop SWIFT_WARN_UNUSED_RESULT;
|
|
1035
1079
|
- (MasonLengthPercentageCompat * _Nonnull)getPaddingBottom SWIFT_WARN_UNUSED_RESULT;
|
|
1036
|
-
- (void)
|
|
1037
|
-
- (MasonLengthPercentageRectCompat * _Nonnull)
|
|
1038
|
-
- (void)
|
|
1039
|
-
- (void)
|
|
1040
|
-
- (void)
|
|
1041
|
-
- (void)
|
|
1080
|
+
- (void)setBorderWidth:(float)left :(float)top :(float)right :(float)bottom;
|
|
1081
|
+
- (MasonLengthPercentageRectCompat * _Nonnull)getBorderWidth SWIFT_WARN_UNUSED_RESULT;
|
|
1082
|
+
- (void)setBorderLeftWidth:(float)left :(NSInteger)type;
|
|
1083
|
+
- (void)setBorderRightWidth:(float)right :(NSInteger)type;
|
|
1084
|
+
- (void)setBorderTopWidth:(float)top :(NSInteger)type;
|
|
1085
|
+
- (void)setBorderBottomWidth:(float)bottom :(NSInteger)type;
|
|
1042
1086
|
- (MasonLengthPercentageCompat * _Nonnull)getBorderLeft SWIFT_WARN_UNUSED_RESULT;
|
|
1043
1087
|
- (MasonLengthPercentageCompat * _Nonnull)getBorderRight SWIFT_WARN_UNUSED_RESULT;
|
|
1044
1088
|
- (MasonLengthPercentageCompat * _Nonnull)getBorderBottom SWIFT_WARN_UNUSED_RESULT;
|
|
@@ -1250,6 +1294,7 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, strong) NSCMason * _Nonnull sh
|
|
|
1250
1294
|
+ (NSCMason * _Nonnull)shared SWIFT_WARN_UNUSED_RESULT;
|
|
1251
1295
|
+ (void)setShared:(NSCMason * _Nonnull)value;
|
|
1252
1296
|
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
|
|
1297
|
+
- (void)setDeviceScale:(float)value;
|
|
1253
1298
|
- (MasonNode * _Nonnull)nodeForView:(UIView * _Nonnull)view :(BOOL)isLeaf SWIFT_WARN_UNUSED_RESULT;
|
|
1254
1299
|
- (void)configureStyleForView:(UIView * _Nonnull)view :(SWIFT_NOESCAPE void (^ _Nonnull)(MasonStyle * _Nonnull))block;
|
|
1255
1300
|
- (MasonStyle * _Nonnull)styleForView:(UIView * _Nonnull)view SWIFT_WARN_UNUSED_RESULT;
|
|
@@ -1307,6 +1352,14 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, strong) NSCMason * _Nonnull sh
|
|
|
1307
1352
|
- (void)mason_replaceChildAtNode:(MasonNode * _Nonnull)node :(NSInteger)index;
|
|
1308
1353
|
@end
|
|
1309
1354
|
|
|
1355
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, MasonObjectFit, "ObjectFit", open) {
|
|
1356
|
+
MasonObjectFitContain = 0,
|
|
1357
|
+
MasonObjectFitCover = 1,
|
|
1358
|
+
MasonObjectFitFill = 2,
|
|
1359
|
+
MasonObjectFitNone = 3,
|
|
1360
|
+
MasonObjectFitScaleDown = 4,
|
|
1361
|
+
};
|
|
1362
|
+
|
|
1310
1363
|
typedef SWIFT_ENUM_NAMED(NSInteger, MasonOverflow, "Overflow", open) {
|
|
1311
1364
|
MasonOverflowVisible = 0,
|
|
1312
1365
|
MasonOverflowHidden = 1,
|
|
@@ -1731,6 +1784,7 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
|
|
|
1731
1784
|
@import CoreGraphics;
|
|
1732
1785
|
@import Foundation;
|
|
1733
1786
|
@import ObjectiveC;
|
|
1787
|
+
@import QuartzCore;
|
|
1734
1788
|
@import UIKit;
|
|
1735
1789
|
#endif
|
|
1736
1790
|
|
|
@@ -1796,11 +1850,28 @@ typedef SWIFT_ENUM_NAMED(NSInteger, MasonAlignSelf, "AlignSelf", open) {
|
|
|
1796
1850
|
MasonAlignSelfFlexEnd = 6,
|
|
1797
1851
|
};
|
|
1798
1852
|
|
|
1853
|
+
@class NSCoder;
|
|
1854
|
+
SWIFT_CLASS("_TtC5Mason17BackgroundCALayer")
|
|
1855
|
+
@interface BackgroundCALayer : CALayer
|
|
1856
|
+
- (void)drawInContext:(CGContextRef _Nonnull)ctx;
|
|
1857
|
+
- (void)layoutSublayers;
|
|
1858
|
+
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
|
|
1859
|
+
- (nonnull instancetype)initWithLayer:(id _Nonnull)layer OBJC_DESIGNATED_INITIALIZER;
|
|
1860
|
+
- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder OBJC_DESIGNATED_INITIALIZER;
|
|
1861
|
+
@end
|
|
1862
|
+
|
|
1799
1863
|
typedef SWIFT_ENUM_NAMED(NSInteger, MasonBoxSizing, "BoxSizing", open) {
|
|
1800
1864
|
MasonBoxSizingBorderBox = 0,
|
|
1801
1865
|
MasonBoxSizingContentBox = 1,
|
|
1802
1866
|
};
|
|
1803
1867
|
|
|
1868
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, MasonClear, "Clear", open) {
|
|
1869
|
+
MasonClearNone = 0,
|
|
1870
|
+
MasonClearLeft = 1,
|
|
1871
|
+
MasonClearRight = 2,
|
|
1872
|
+
MasonClearBoth = 3,
|
|
1873
|
+
};
|
|
1874
|
+
|
|
1804
1875
|
typedef SWIFT_ENUM_NAMED(NSInteger, MasonDecorationLine, "DecorationLine", open) {
|
|
1805
1876
|
MasonDecorationLineNone = 0,
|
|
1806
1877
|
MasonDecorationLineUnderline = 1,
|
|
@@ -1897,7 +1968,6 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) MasonGridTra
|
|
|
1897
1968
|
|
|
1898
1969
|
@class MasonStyle;
|
|
1899
1970
|
@class MasonNode;
|
|
1900
|
-
@class UIView;
|
|
1901
1971
|
SWIFT_PROTOCOL("_TtP5Mason16MasonElementObjc_")
|
|
1902
1972
|
@protocol MasonElementObjc <NSObject>
|
|
1903
1973
|
@property (nonatomic, readonly, strong) MasonStyle * _Nonnull style;
|
|
@@ -1908,21 +1978,22 @@ SWIFT_PROTOCOL("_TtP5Mason16MasonElementObjc_")
|
|
|
1908
1978
|
@class NSCMason;
|
|
1909
1979
|
enum MasonLoadingState : NSInteger;
|
|
1910
1980
|
@class UIImage;
|
|
1911
|
-
@class NSCoder;
|
|
1912
1981
|
SWIFT_CLASS_NAMED("Img")
|
|
1913
|
-
@interface MasonImg :
|
|
1982
|
+
@interface MasonImg : UIView <MasonElementObjc>
|
|
1914
1983
|
@property (nonatomic, readonly, strong) MasonNode * _Nonnull node;
|
|
1915
1984
|
@property (nonatomic, readonly, strong) NSCMason * _Nonnull mason;
|
|
1916
1985
|
@property (nonatomic, readonly, strong) UIView * _Nonnull uiView;
|
|
1917
1986
|
@property (nonatomic, readonly, strong) MasonStyle * _Nonnull style;
|
|
1918
1987
|
@property (nonatomic, copy) void (^ _Nullable didLayout)(void);
|
|
1919
1988
|
@property (nonatomic, copy) void (^ _Nullable onStateChange)(enum MasonLoadingState, NSError * _Nullable);
|
|
1989
|
+
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly) Class _Nonnull layerClass;)
|
|
1990
|
+
+ (Class _Nonnull)layerClass SWIFT_WARN_UNUSED_RESULT;
|
|
1920
1991
|
@property (nonatomic, strong) UIImage * _Nullable image;
|
|
1992
|
+
- (void)requestLayout;
|
|
1993
|
+
- (void)setNeedsDisplay;
|
|
1921
1994
|
@property (nonatomic, copy) NSString * _Nullable src;
|
|
1922
1995
|
- (void)updateImage:(UIImage * _Nullable)image;
|
|
1923
1996
|
- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
|
|
1924
|
-
- (nonnull instancetype)initWithImage:(UIImage * _Nullable)image SWIFT_UNAVAILABLE;
|
|
1925
|
-
- (nonnull instancetype)initWithImage:(UIImage * _Nullable)image highlightedImage:(UIImage * _Nullable)highlightedImage SWIFT_UNAVAILABLE;
|
|
1926
1997
|
- (nonnull instancetype)initWithFrame:(CGRect)frame SWIFT_UNAVAILABLE;
|
|
1927
1998
|
@end
|
|
1928
1999
|
|
|
@@ -2054,6 +2125,20 @@ SWIFT_CLASS_NAMED("MasonDocument")
|
|
|
2054
2125
|
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
2055
2126
|
@end
|
|
2056
2127
|
|
|
2128
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, MasonFloat, "MasonFloat", open) {
|
|
2129
|
+
MasonFloatNone = 0,
|
|
2130
|
+
MasonFloatLeft = 1,
|
|
2131
|
+
MasonFloatRight = 2,
|
|
2132
|
+
};
|
|
2133
|
+
|
|
2134
|
+
SWIFT_CLASS("_TtC5Mason15MasonImageLayer")
|
|
2135
|
+
@interface MasonImageLayer : CALayer
|
|
2136
|
+
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
|
|
2137
|
+
- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
|
|
2138
|
+
- (void)drawInContext:(CGContextRef _Nonnull)context;
|
|
2139
|
+
- (nonnull instancetype)initWithLayer:(id _Nonnull)layer SWIFT_UNAVAILABLE;
|
|
2140
|
+
@end
|
|
2141
|
+
|
|
2057
2142
|
SWIFT_CLASS_NAMED("MasonLayout")
|
|
2058
2143
|
@interface MasonLayout : NSObject
|
|
2059
2144
|
@property (nonatomic, readonly) NSInteger order;
|
|
@@ -2214,6 +2299,7 @@ SWIFT_CLASS_NAMED("MasonOverflowPointCompat")
|
|
|
2214
2299
|
|
|
2215
2300
|
@class NSCFontFace;
|
|
2216
2301
|
@class NSMutableData;
|
|
2302
|
+
enum MasonObjectFit : NSInteger;
|
|
2217
2303
|
@class UIColor;
|
|
2218
2304
|
enum MasonTextJustify : NSInteger;
|
|
2219
2305
|
@class MasonTextOverflowCompat;
|
|
@@ -2222,16 +2308,19 @@ enum MasonWhiteSpace : NSInteger;
|
|
|
2222
2308
|
enum MasonTextWrap : NSInteger;
|
|
2223
2309
|
enum MasonPosition : NSInteger;
|
|
2224
2310
|
enum MasonTextAlign : NSInteger;
|
|
2225
|
-
@class MinMax;
|
|
2226
|
-
@class TrackSizingFunction;
|
|
2227
2311
|
SWIFT_CLASS_NAMED("MasonStyle")
|
|
2228
2312
|
@interface MasonStyle : NSObject
|
|
2229
2313
|
@property (nonatomic, readonly, strong) NSCFontFace * _Nonnull font;
|
|
2230
2314
|
@property (nonatomic, strong) NSMutableData * _Nonnull values;
|
|
2231
2315
|
@property (nonatomic, strong) NSMutableData * _Nonnull textValues;
|
|
2232
2316
|
- (nonnull instancetype)initWithNode:(MasonNode * _Nonnull)node OBJC_DESIGNATED_INITIALIZER;
|
|
2317
|
+
@property (nonatomic) enum MasonObjectFit objectFit;
|
|
2318
|
+
@property (nonatomic, getter=float, setter=setFloat:) enum MasonFloat float_;
|
|
2319
|
+
@property (nonatomic) enum MasonClear clear;
|
|
2233
2320
|
@property (nonatomic) uint32_t color;
|
|
2234
2321
|
- (void)setColorWithUi:(UIColor * _Nonnull)color;
|
|
2322
|
+
@property (nonatomic, copy) NSString * _Nonnull filter;
|
|
2323
|
+
@property (nonatomic, copy) NSString * _Nonnull background;
|
|
2235
2324
|
@property (nonatomic) uint32_t backgroundColor;
|
|
2236
2325
|
- (void)setBackgroundColorWithUi:(UIColor * _Nonnull)color;
|
|
2237
2326
|
- (void)setLineHeight:(float)value :(BOOL)isRelative;
|
|
@@ -2244,6 +2333,7 @@ SWIFT_CLASS_NAMED("MasonStyle")
|
|
|
2244
2333
|
- (void)setFontStyle:(enum MasonFontStyle)style :(int32_t)slant;
|
|
2245
2334
|
@property (nonatomic) enum MasonTextJustify textJustify;
|
|
2246
2335
|
@property (nonatomic) enum MasonFontStyle fontStyle;
|
|
2336
|
+
@property (nonatomic, copy) NSString * _Nonnull fontFamily;
|
|
2247
2337
|
@property (nonatomic, copy) NSString * _Nonnull fontWeight;
|
|
2248
2338
|
@property (nonatomic, strong) MasonTextOverflowCompat * _Nonnull textOverflowCompat;
|
|
2249
2339
|
@property (nonatomic) enum MasonTextTransform textTransform;
|
|
@@ -2281,12 +2371,13 @@ SWIFT_CLASS_NAMED("MasonStyle")
|
|
|
2281
2371
|
- (void)setPaddingTop:(float)value :(NSInteger)type;
|
|
2282
2372
|
- (void)setPaddingBottom:(float)value :(NSInteger)type;
|
|
2283
2373
|
- (void)setPaddingWithValueType:(float)value :(NSInteger)type;
|
|
2284
|
-
@property (nonatomic,
|
|
2285
|
-
|
|
2286
|
-
- (void)
|
|
2287
|
-
- (void)
|
|
2288
|
-
- (void)
|
|
2289
|
-
- (void)
|
|
2374
|
+
@property (nonatomic, copy) NSString * _Nonnull border;
|
|
2375
|
+
@property (nonatomic, strong) MasonLengthPercentageRectCompat * _Nonnull borderWidthCompat;
|
|
2376
|
+
- (void)setBorderLeftWidth:(float)value :(NSInteger)type;
|
|
2377
|
+
- (void)setBorderRightWidth:(float)value :(NSInteger)type;
|
|
2378
|
+
- (void)setBorderTopWidth:(float)value :(NSInteger)type;
|
|
2379
|
+
- (void)setBorderBottomWidth:(float)value :(NSInteger)type;
|
|
2380
|
+
- (void)setBorderWidth:(float)value :(NSInteger)type;
|
|
2290
2381
|
@property (nonatomic) float flexGrow;
|
|
2291
2382
|
@property (nonatomic) float flexShrink;
|
|
2292
2383
|
- (void)setFlexBasis:(float)value :(NSInteger)type;
|
|
@@ -2313,19 +2404,19 @@ SWIFT_CLASS_NAMED("MasonStyle")
|
|
|
2313
2404
|
- (void)setGapColumn:(float)value :(NSInteger)type;
|
|
2314
2405
|
- (void)setRowGap:(float)value :(NSInteger)type;
|
|
2315
2406
|
- (void)setColumnGap:(float)value :(NSInteger)type;
|
|
2316
|
-
@property (nonatomic, copy)
|
|
2317
|
-
@property (nonatomic, copy)
|
|
2407
|
+
@property (nonatomic, copy) NSString * _Nonnull gridArea;
|
|
2408
|
+
@property (nonatomic, copy) NSString * _Nonnull gridTemplateAreas;
|
|
2409
|
+
@property (nonatomic, copy) NSString * _Nonnull gridAutoRows;
|
|
2410
|
+
@property (nonatomic, copy) NSString * _Nonnull gridAutoColumns;
|
|
2318
2411
|
@property (nonatomic) enum MasonGridAutoFlowWrap gridAutoFlow;
|
|
2319
|
-
@property (nonatomic,
|
|
2320
|
-
@property (nonatomic,
|
|
2321
|
-
@property (nonatomic,
|
|
2322
|
-
@property (nonatomic,
|
|
2323
|
-
@property (nonatomic,
|
|
2324
|
-
@property (nonatomic,
|
|
2325
|
-
@property (nonatomic,
|
|
2326
|
-
@property (nonatomic, copy)
|
|
2327
|
-
@property (nonatomic, readonly, copy) NSString * _Nonnull gridTemplateColumnsCSS;
|
|
2328
|
-
@property (nonatomic, copy) NSArray<TrackSizingFunction *> * _Nonnull gridTemplateColumns;
|
|
2412
|
+
@property (nonatomic, copy) NSString * _Nonnull gridColumn;
|
|
2413
|
+
@property (nonatomic, copy) NSString * _Nonnull gridColumnStart;
|
|
2414
|
+
@property (nonatomic, copy) NSString * _Nonnull gridColumnEnd;
|
|
2415
|
+
@property (nonatomic, copy) NSString * _Nonnull gridRow;
|
|
2416
|
+
@property (nonatomic, copy) NSString * _Nonnull gridRowStart;
|
|
2417
|
+
@property (nonatomic, copy) NSString * _Nonnull gridRowEnd;
|
|
2418
|
+
@property (nonatomic, copy) NSString * _Nonnull gridTemplateRows;
|
|
2419
|
+
@property (nonatomic, copy) NSString * _Nonnull gridTemplateColumns;
|
|
2329
2420
|
- (void)updateNativeStyle;
|
|
2330
2421
|
@property (nonatomic, readonly, copy) NSString * _Nonnull description;
|
|
2331
2422
|
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
|
@@ -2337,6 +2428,8 @@ SWIFT_CLASS_NAMED("MasonText")
|
|
|
2337
2428
|
@interface MasonText : UIView <MasonElementObjc>
|
|
2338
2429
|
@property (nonatomic, readonly, strong) MasonNode * _Nonnull node;
|
|
2339
2430
|
@property (nonatomic, readonly) enum MasonTextType type;
|
|
2431
|
+
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly) Class _Nonnull layerClass;)
|
|
2432
|
+
+ (Class _Nonnull)layerClass SWIFT_WARN_UNUSED_RESULT;
|
|
2340
2433
|
@property (nonatomic, readonly, strong) NSMutableData * _Nonnull textValues;
|
|
2341
2434
|
@property (nonatomic, readonly, strong) UIView * _Nonnull uiView;
|
|
2342
2435
|
@property (nonatomic, readonly, strong) MasonStyle * _Nonnull style;
|
|
@@ -2363,6 +2456,8 @@ SWIFT_CLASS_NAMED("MasonText")
|
|
|
2363
2456
|
@property (nonatomic) enum MasonWhiteSpace whiteSpace;
|
|
2364
2457
|
@property (nonatomic) enum MasonTextWrap textWrap;
|
|
2365
2458
|
@property (nonatomic) float lineHeight;
|
|
2459
|
+
/// Text content - sets or gets the concatenated text from all text nodes
|
|
2460
|
+
@property (nonatomic, copy) NSString * _Nonnull textContent;
|
|
2366
2461
|
- (nonnull instancetype)initWithFrame:(CGRect)frame SWIFT_UNAVAILABLE;
|
|
2367
2462
|
@end
|
|
2368
2463
|
|
|
@@ -2370,20 +2465,19 @@ SWIFT_CLASS_NAMED("MasonText")
|
|
|
2370
2465
|
- (void)addChild:(MasonNode * _Nonnull)child;
|
|
2371
2466
|
@end
|
|
2372
2467
|
|
|
2373
|
-
@interface MasonText (SWIFT_EXTENSION(Mason))
|
|
2374
|
-
/// Text content - sets or gets the concatenated text from all text nodes
|
|
2375
|
-
@property (nonatomic, copy) NSString * _Nonnull text;
|
|
2376
|
-
@end
|
|
2377
|
-
|
|
2378
|
-
@interface MasonText (SWIFT_EXTENSION(Mason))
|
|
2379
|
-
- (void)drawRect:(CGRect)rect;
|
|
2380
|
-
@end
|
|
2381
|
-
|
|
2382
2468
|
@interface MasonText (SWIFT_EXTENSION(Mason))
|
|
2383
2469
|
/// Remove child from text container
|
|
2384
2470
|
- (MasonNode * _Nullable)removeChild:(MasonNode * _Nonnull)child;
|
|
2385
2471
|
@end
|
|
2386
2472
|
|
|
2473
|
+
SWIFT_CLASS("_TtC5Mason14MasonTextLayer")
|
|
2474
|
+
@interface MasonTextLayer : CALayer
|
|
2475
|
+
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
|
|
2476
|
+
- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
|
|
2477
|
+
- (void)drawInContext:(CGContextRef _Nonnull)context;
|
|
2478
|
+
- (nonnull instancetype)initWithLayer:(id _Nonnull)layer SWIFT_UNAVAILABLE;
|
|
2479
|
+
@end
|
|
2480
|
+
|
|
2387
2481
|
SWIFT_CLASS_NAMED("MasonTextNode")
|
|
2388
2482
|
@interface MasonTextNode : MasonNode <MasonCharacterData>
|
|
2389
2483
|
@property (nonatomic, copy) NSString * _Nonnull data;
|
|
@@ -2440,6 +2534,7 @@ SWIFT_CLASS_NAMED("MasonUIView")
|
|
|
2440
2534
|
- (void)addSubviews:(NSArray<UIView *> * _Nonnull)views;
|
|
2441
2535
|
- (void)addSubviews:(NSArray<UIView *> * _Nonnull)views at:(NSInteger)index;
|
|
2442
2536
|
@property (nonatomic) BOOL inBatch;
|
|
2537
|
+
@property (nonatomic, copy) NSString * _Nonnull background;
|
|
2443
2538
|
@property (nonatomic) enum MasonDisplay display;
|
|
2444
2539
|
@property (nonatomic) enum MasonPosition _position;
|
|
2445
2540
|
@property (nonatomic) enum MasonDirection direction;
|
|
@@ -2458,17 +2553,19 @@ SWIFT_CLASS_NAMED("MasonUIView")
|
|
|
2458
2553
|
@property (nonatomic, strong) MasonDimensionCompat * _Nonnull scrollBarWidthCompat;
|
|
2459
2554
|
@property (nonatomic, strong) MasonDimensionCompat * _Nonnull flexBasisCompat;
|
|
2460
2555
|
@property (nonatomic) float aspectRatio;
|
|
2461
|
-
@property (nonatomic, copy)
|
|
2462
|
-
@property (nonatomic, copy)
|
|
2556
|
+
@property (nonatomic, copy) NSString * _Nonnull gridArea;
|
|
2557
|
+
@property (nonatomic, copy) NSString * _Nonnull gridTemplateAreas;
|
|
2558
|
+
@property (nonatomic, copy) NSString * _Nonnull gridAutoRows;
|
|
2559
|
+
@property (nonatomic, copy) NSString * _Nonnull gridAutoColumns;
|
|
2463
2560
|
@property (nonatomic) enum MasonGridAutoFlowWrap gridAutoFlow;
|
|
2464
|
-
@property (nonatomic,
|
|
2465
|
-
@property (nonatomic,
|
|
2466
|
-
@property (nonatomic,
|
|
2467
|
-
@property (nonatomic,
|
|
2468
|
-
@property (nonatomic,
|
|
2469
|
-
@property (nonatomic,
|
|
2470
|
-
@property (nonatomic, copy)
|
|
2471
|
-
@property (nonatomic, copy)
|
|
2561
|
+
@property (nonatomic, copy) NSString * _Nonnull gridColumn;
|
|
2562
|
+
@property (nonatomic, copy) NSString * _Nonnull gridColumnStart;
|
|
2563
|
+
@property (nonatomic, copy) NSString * _Nonnull gridColumnEnd;
|
|
2564
|
+
@property (nonatomic, copy) NSString * _Nonnull gridRow;
|
|
2565
|
+
@property (nonatomic, copy) NSString * _Nonnull gridRowStart;
|
|
2566
|
+
@property (nonatomic, copy) NSString * _Nonnull gridRowEnd;
|
|
2567
|
+
@property (nonatomic, copy) NSString * _Nonnull gridTemplateRows;
|
|
2568
|
+
@property (nonatomic, copy) NSString * _Nonnull gridTemplateColumns;
|
|
2472
2569
|
- (void)setPadding:(float)left :(float)right :(float)top :(float)bottom;
|
|
2473
2570
|
- (MasonLengthPercentageRectCompat * _Nonnull)getPadding SWIFT_WARN_UNUSED_RESULT;
|
|
2474
2571
|
- (void)setPaddingLeft:(float)left :(NSInteger)type;
|
|
@@ -2479,12 +2576,12 @@ SWIFT_CLASS_NAMED("MasonUIView")
|
|
|
2479
2576
|
- (MasonLengthPercentageCompat * _Nonnull)getPaddingRight SWIFT_WARN_UNUSED_RESULT;
|
|
2480
2577
|
- (MasonLengthPercentageCompat * _Nonnull)getPaddingTop SWIFT_WARN_UNUSED_RESULT;
|
|
2481
2578
|
- (MasonLengthPercentageCompat * _Nonnull)getPaddingBottom SWIFT_WARN_UNUSED_RESULT;
|
|
2482
|
-
- (void)
|
|
2483
|
-
- (MasonLengthPercentageRectCompat * _Nonnull)
|
|
2484
|
-
- (void)
|
|
2485
|
-
- (void)
|
|
2486
|
-
- (void)
|
|
2487
|
-
- (void)
|
|
2579
|
+
- (void)setBorderWidth:(float)left :(float)top :(float)right :(float)bottom;
|
|
2580
|
+
- (MasonLengthPercentageRectCompat * _Nonnull)getBorderWidth SWIFT_WARN_UNUSED_RESULT;
|
|
2581
|
+
- (void)setBorderLeftWidth:(float)left :(NSInteger)type;
|
|
2582
|
+
- (void)setBorderRightWidth:(float)right :(NSInteger)type;
|
|
2583
|
+
- (void)setBorderTopWidth:(float)top :(NSInteger)type;
|
|
2584
|
+
- (void)setBorderBottomWidth:(float)bottom :(NSInteger)type;
|
|
2488
2585
|
- (MasonLengthPercentageCompat * _Nonnull)getBorderLeft SWIFT_WARN_UNUSED_RESULT;
|
|
2489
2586
|
- (MasonLengthPercentageCompat * _Nonnull)getBorderRight SWIFT_WARN_UNUSED_RESULT;
|
|
2490
2587
|
- (MasonLengthPercentageCompat * _Nonnull)getBorderBottom SWIFT_WARN_UNUSED_RESULT;
|
|
@@ -2696,6 +2793,7 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, strong) NSCMason * _Nonnull sh
|
|
|
2696
2793
|
+ (NSCMason * _Nonnull)shared SWIFT_WARN_UNUSED_RESULT;
|
|
2697
2794
|
+ (void)setShared:(NSCMason * _Nonnull)value;
|
|
2698
2795
|
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
|
|
2796
|
+
- (void)setDeviceScale:(float)value;
|
|
2699
2797
|
- (MasonNode * _Nonnull)nodeForView:(UIView * _Nonnull)view :(BOOL)isLeaf SWIFT_WARN_UNUSED_RESULT;
|
|
2700
2798
|
- (void)configureStyleForView:(UIView * _Nonnull)view :(SWIFT_NOESCAPE void (^ _Nonnull)(MasonStyle * _Nonnull))block;
|
|
2701
2799
|
- (MasonStyle * _Nonnull)styleForView:(UIView * _Nonnull)view SWIFT_WARN_UNUSED_RESULT;
|
|
@@ -2753,6 +2851,14 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, strong) NSCMason * _Nonnull sh
|
|
|
2753
2851
|
- (void)mason_replaceChildAtNode:(MasonNode * _Nonnull)node :(NSInteger)index;
|
|
2754
2852
|
@end
|
|
2755
2853
|
|
|
2854
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, MasonObjectFit, "ObjectFit", open) {
|
|
2855
|
+
MasonObjectFitContain = 0,
|
|
2856
|
+
MasonObjectFitCover = 1,
|
|
2857
|
+
MasonObjectFitFill = 2,
|
|
2858
|
+
MasonObjectFitNone = 3,
|
|
2859
|
+
MasonObjectFitScaleDown = 4,
|
|
2860
|
+
};
|
|
2861
|
+
|
|
2756
2862
|
typedef SWIFT_ENUM_NAMED(NSInteger, MasonOverflow, "Overflow", open) {
|
|
2757
2863
|
MasonOverflowVisible = 0,
|
|
2758
2864
|
MasonOverflowHidden = 1,
|