un nonnulla

This commit is contained in:
Pfeil, Scott Robert 2019-03-25 17:32:24 -04:00
parent 623b1590ee
commit bc5e4b311b
2 changed files with 14 additions and 14 deletions

View File

@ -47,20 +47,20 @@ static CGFloat const PrimaryButtonSmallHeight = 30.0;
@property (nonatomic) BOOL skipHighlighted; @property (nonatomic) BOOL skipHighlighted;
// The main creation functions, changed to black button for 2.0 for default // The main creation functions, changed to black button for 2.0 for default
+ (nonnull instancetype)primaryButton:(BOOL)enabled; + (nullable instancetype)primaryButton:(BOOL)enabled;
+ (nonnull instancetype)primarySmallButton:(BOOL)enabled; + (nullable instancetype)primarySmallButton:(BOOL)enabled;
+ (nonnull instancetype)primaryTinyButton:(BOOL)enabled; + (nullable instancetype)primaryTinyButton:(BOOL)enabled;
+ (nonnull instancetype)primaryButton NS_SWIFT_NAME(button()); + (nonnull instancetype)primaryButton NS_SWIFT_NAME(button());
+ (nonnull instancetype)primarySmallButton; + (nullable instancetype)primarySmallButton;
+ (nonnull instancetype)primaryWhiteButton:(BOOL)small; + (nullable instancetype)primaryWhiteButton:(BOOL)small;
// legacy color functions. // legacy color functions.
+ (nonnull instancetype)primaryRedButton; + (nullable instancetype)primaryRedButton;
+ (nonnull instancetype)primaryGrayButtonSmall:(BOOL)small; + (nullable instancetype)primaryGrayButtonSmall:(BOOL)small;
+ (nonnull instancetype)primaryRedSmallButton; + (nullable instancetype)primaryRedSmallButton;
+ (nonnull instancetype)primaryGraySmallRedButton; + (nullable instancetype)primaryGraySmallRedButton;
+ (nonnull instancetype)primaryWhiteSmallRedButton; + (nullable instancetype)primaryWhiteSmallRedButton;
@ -68,7 +68,7 @@ static CGFloat const PrimaryButtonSmallHeight = 30.0;
#pragma mark - For Subclassing #pragma mark - For Subclassing
// Creates and pins the height of the button, nothing more. // Creates and pins the height of the button, nothing more.
+ (nonnull instancetype)getButton; + (nullable instancetype)getButton;
// Pins the height initially. // Pins the height initially.
- (void)pinHeight; - (void)pinHeight;

View File

@ -555,7 +555,7 @@
return button; return button;
} }
+ (nonnull instancetype)primarySmallButton { + (nullable instancetype)primarySmallButton {
PrimaryButton *button = [self getButton]; PrimaryButton *button = [self getButton];
button.primaryButtonType = PrimaryButtonTypeBlack; button.primaryButtonType = PrimaryButtonTypeBlack;
[button setAsBlack]; [button setAsBlack];
@ -563,7 +563,7 @@
return button; return button;
} }
+ (nonnull instancetype)primaryTinyButton:(BOOL)enabled { + (nullable instancetype)primaryTinyButton:(BOOL)enabled {
PrimaryButton *button = [self getButton]; PrimaryButton *button = [self getButton];
button.primaryButtonType = PrimaryButtonTypeBlack; button.primaryButtonType = PrimaryButtonTypeBlack;
[button setAsBlack]; [button setAsBlack];
@ -612,7 +612,7 @@
return button; return button;
} }
+ (nonnull instancetype)primaryWhiteButton:(BOOL)small { + (nullable instancetype)primaryWhiteButton:(BOOL)small {
PrimaryButton *button = [self getButton]; PrimaryButton *button = [self getButton];
button.primaryButtonType = PrimaryButtonTypeWhite; button.primaryButtonType = PrimaryButtonTypeWhite;
[button setAsAllWhite]; [button setAsAllWhite];