mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 14:20:20 +00:00
[Umbrella] Add warn_unused_result Attribute to Public Headers (#2353)
* Add some warn_unused_result attributes * Add more * Add some more
This commit is contained in:
@@ -68,7 +68,7 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
@discussion To update the placeholder, see the <attributedPlaceholderText> property.
|
||||
@result YES if the placeholder is currently displayed; NO otherwise.
|
||||
*/
|
||||
- (BOOL)isDisplayingPlaceholder;
|
||||
- (BOOL)isDisplayingPlaceholder AS_WARN_UNUSED_RESULT;
|
||||
|
||||
/**
|
||||
@abstract The styled placeholder text displayed by the text node while no text is entered
|
||||
@@ -108,7 +108,7 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
@abstract Indicates whether the receiver's text view is the first responder, and thus has the keyboard visible and is prepared for editing by the user.
|
||||
@result YES if the receiver's text view is the first-responder; NO otherwise.
|
||||
*/
|
||||
- (BOOL)isFirstResponder;
|
||||
- (BOOL)isFirstResponder AS_WARN_UNUSED_RESULT;
|
||||
|
||||
//! @abstract Makes the receiver's text view the first responder.
|
||||
- (BOOL)becomeFirstResponder;
|
||||
@@ -123,7 +123,7 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
@discussion This method raises an exception if `textRange` is not a valid range of characters within the receiver's attributed text.
|
||||
@result A CGRect that is the bounding box of the glyphs covered by the given range of characters, in the coordinate system of the receiver.
|
||||
*/
|
||||
- (CGRect)frameForTextRange:(NSRange)textRange;
|
||||
- (CGRect)frameForTextRange:(NSRange)textRange AS_WARN_UNUSED_RESULT;
|
||||
|
||||
@end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user