mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 22:55:00 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user