Standardize Property Declaration Style in Core Classes (#870)

* Audit property attributes for core classes

* Update style guide

* Go crazy

* Update changelog
This commit is contained in:
Adlai Holler
2018-05-24 14:42:43 -07:00
committed by GitHub
parent 9ccba7fe74
commit cac14e0bce
164 changed files with 1096 additions and 1018 deletions

View File

@@ -50,19 +50,19 @@
- (instancetype)initWithTextKitAttributes:(const ASTextKitAttributes &)textComponentAttributes
constrainedSize:(const CGSize)constrainedSize;
@property (nonatomic, strong, readonly) ASTextKitContext *context;
@property (nonatomic, readonly) ASTextKitContext *context;
@property (nonatomic, strong, readonly) id<ASTextKitTruncating> truncater;
@property (nonatomic, readonly) id<ASTextKitTruncating> truncater;
@property (nonatomic, strong, readonly) ASTextKitFontSizeAdjuster *fontSizeAdjuster;
@property (nonatomic, readonly) ASTextKitFontSizeAdjuster *fontSizeAdjuster;
@property (nonatomic, strong, readonly) ASTextKitShadower *shadower;
@property (nonatomic, readonly) ASTextKitShadower *shadower;
@property (nonatomic, assign, readonly) ASTextKitAttributes attributes;
@property (nonatomic, readonly) ASTextKitAttributes attributes;
@property (nonatomic, assign, readonly) CGSize constrainedSize;
@property (nonatomic, readonly) CGSize constrainedSize;
@property (nonatomic, assign, readonly) CGFloat currentScaleFactor;
@property (nonatomic, readonly) CGFloat currentScaleFactor;
#pragma mark - Drawing
/**
@@ -85,7 +85,7 @@
The character range from the original attributedString that is displayed by the renderer given the parameters in the
initializer.
*/
@property (nonatomic, assign, readonly) std::vector<NSRange> visibleRanges;
@property (nonatomic, readonly) std::vector<NSRange> visibleRanges;
/**
The number of lines shown in the string.
@@ -105,6 +105,6 @@
Returns the first visible range or an NSRange with location of NSNotFound and size of 0 if no first visible
range exists
*/
@property (nonatomic, assign, readonly) NSRange firstVisibleRange;
@property (nonatomic, readonly) NSRange firstVisibleRange;
@end