Skip to content
This repository was archived by the owner on Jun 4, 2025. It is now read-only.

Commit 78bef3d

Browse files
Merge pull request #113 from wordpress-mobile/issue/nullability-specifiers
Nullability Specifiers
2 parents 9bcec70 + 8d6d82e commit 78bef3d

File tree

2 files changed

+20
-10
lines changed

2 files changed

+20
-10
lines changed

WordPress-iOS-Shared/Core/WPFontManager.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
#import <UIKit/UIKit.h>
22

3+
4+
NS_ASSUME_NONNULL_BEGIN
5+
36
@interface WPFontManager : NSObject
47

58
/// Loads the OpenSans font family for the life of the current process.
@@ -33,3 +36,5 @@
3336
+ (UIFont *)merriweatherRegularFontOfSize:(CGFloat)size;
3437

3538
@end
39+
40+
NS_ASSUME_NONNULL_END

WordPress-iOS-Shared/Core/WPStyleGuide.h

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
#import <UIKit/UIKit.h>
22

3+
4+
NS_ASSUME_NONNULL_BEGIN
5+
36
@class WPTextFieldTableViewCell;
47
@interface WPStyleGuide : NSObject
58

@@ -63,21 +66,21 @@
6366
+ (void)setRightBarButtonItemWithCorrectSpacing:(UIBarButtonItem *)barButtonItem forNavigationItem:(UINavigationItem *)navigationItem;
6467

6568
// View and TableView Helpers
66-
+ (void)configureColorsForView:(UIView *)view andTableView:(UITableView *)tableView;
67-
+ (void)configureColorsForView:(UIView *)view collectionView:(UICollectionView *)collectionView;
68-
+ (void)configureTableViewCell:(UITableViewCell *)cell;
69-
+ (void)configureTableViewSmallSubtitleCell:(UITableViewCell *)cell;
70-
+ (void)configureTableViewActionCell:(UITableViewCell *)cell;
71-
+ (void)configureTableViewDestructiveActionCell:(UITableViewCell *)cell;
72-
+ (void)configureTableViewTextCell:(WPTextFieldTableViewCell *)cell;
73-
+ (void)configureTableViewSectionHeader:(UIView *)header;
74-
+ (void)configureTableViewSectionFooter:(UIView *)footer;
69+
+ (void)configureColorsForView:(nullable UIView *)view andTableView:(nullable UITableView *)tableView;
70+
+ (void)configureColorsForView:(nullable UIView *)view collectionView:(nullable UICollectionView *)collectionView;
71+
+ (void)configureTableViewCell:(nullable UITableViewCell *)cell;
72+
+ (void)configureTableViewSmallSubtitleCell:(nullable UITableViewCell *)cell;
73+
+ (void)configureTableViewActionCell:(nullable UITableViewCell *)cell;
74+
+ (void)configureTableViewDestructiveActionCell:(nullable UITableViewCell *)cell;
75+
+ (void)configureTableViewTextCell:(nullable WPTextFieldTableViewCell *)cell;
76+
+ (void)configureTableViewSectionHeader:(nullable UIView *)header;
77+
+ (void)configureTableViewSectionFooter:(nullable UIView *)footer;
7578

7679
// Move to a feature category
7780
+ (UIColor *)buttonActionColor;
7881
+ (UIColor *)nuxFormText;
7982
+ (UIColor *)nuxFormPlaceholderText;
80-
+ (void)configureFollowButton:(UIButton *)followButton;
83+
+ (void)configureFollowButton:(nullable UIButton *)followButton;
8184

8285
// Deprecated Colors
8386
+ (UIColor *)baseLighterBlue;
@@ -94,3 +97,5 @@
9497
+ (UIColor *)validationErrorRed;
9598

9699
@end
100+
101+
NS_ASSUME_NONNULL_END

0 commit comments

Comments
 (0)