mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-24 07:05:35 +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:
@@ -76,32 +76,32 @@ static UIControlState const ASControlStateSelected ASDISPLAYNODE_DEPRECATED_MSG(
|
||||
@abstract Indicates whether or not the receiver is enabled.
|
||||
@discussion Specify YES to make the control enabled; otherwise, specify NO to make it disabled. The default value is YES. If the enabled state is NO, the control ignores touch events and subclasses may draw differently.
|
||||
*/
|
||||
@property (nonatomic, assign, getter=isEnabled) BOOL enabled;
|
||||
@property (getter=isEnabled) BOOL enabled;
|
||||
|
||||
/**
|
||||
@abstract Indicates whether or not the receiver is highlighted.
|
||||
@discussion This is set automatically when the there is a touch inside the control and removed on exit or touch up. This is different from touchInside in that it includes an area around the control, rather than just for touches inside the control.
|
||||
*/
|
||||
@property (nonatomic, assign, getter=isHighlighted) BOOL highlighted;
|
||||
@property (getter=isHighlighted) BOOL highlighted;
|
||||
|
||||
/**
|
||||
@abstract Indicates whether or not the receiver is highlighted.
|
||||
@discussion This is set automatically when the receiver is tapped.
|
||||
*/
|
||||
@property (nonatomic, assign, getter=isSelected) BOOL selected;
|
||||
@property (getter=isSelected) BOOL selected;
|
||||
|
||||
#pragma mark - Tracking Touches
|
||||
/**
|
||||
@abstract Indicates whether or not the receiver is currently tracking touches related to an event.
|
||||
@discussion YES if the receiver is tracking touches; NO otherwise.
|
||||
*/
|
||||
@property (nonatomic, readonly, assign, getter=isTracking) BOOL tracking;
|
||||
@property (readonly, getter=isTracking) BOOL tracking;
|
||||
|
||||
/**
|
||||
@abstract Indicates whether or not a touch is inside the bounds of the receiver.
|
||||
@discussion YES if a touch is inside the receiver's bounds; NO otherwise.
|
||||
*/
|
||||
@property (nonatomic, readonly, assign, getter=isTouchInside) BOOL touchInside;
|
||||
@property (readonly, getter=isTouchInside) BOOL touchInside;
|
||||
|
||||
#pragma mark - Action Messages
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user