Skip to content
This repository was archived by the owner on Jan 16, 2021. It is now read-only.

Commit 9ad108d

Browse files
committed
Add nullability annotations to all cells.
1 parent 11348db commit 9ad108d

File tree

3 files changed

+20
-4
lines changed

3 files changed

+20
-4
lines changed

ParseUI/Classes/Cells/PFCollectionViewCell.h

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@
2121

2222
#import <UIKit/UIKit.h>
2323

24+
#import <ParseUI/ParseUIConstants.h>
25+
26+
PFUI_ASSUME_NONNULL_BEGIN
27+
2428
@class PFImageView;
2529
@class PFObject;
2630

@@ -50,6 +54,8 @@
5054
5155
@param object An instance of `PFObject` to update from.
5256
*/
53-
- (void)updateFromObject:(PFObject *)object;
57+
- (void)updateFromObject:(PFUI_NULLABLE PFObject *)object;
5458

5559
@end
60+
61+
PFUI_ASSUME_NONNULL_END

ParseUI/Classes/Cells/PFPurchaseTableViewCell.h

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,11 @@
2121

2222
#import <UIKit/UIKit.h>
2323

24+
#import <ParseUI/ParseUIConstants.h>
2425
#import <ParseUI/PFTableViewCell.h>
2526

27+
PFUI_ASSUME_NONNULL_BEGIN
28+
2629
/*!
2730
An enum that represents states of the PFPurchaseTableViewCell.
2831
@see PFPurchaseTableViewCell
@@ -53,11 +56,13 @@ typedef NS_ENUM(uint8_t, PFPurchaseTableViewCellState) {
5356
/*!
5457
@abstract Label where price of the product is displayed.
5558
*/
56-
@property (nonatomic, strong, readonly) UILabel *priceLabel;
59+
@property (PFUI_NULLABLE_PROPERTY nonatomic, strong, readonly) UILabel *priceLabel;
5760

5861
/*!
5962
@abstract Progress view that is shown, when the product is downloading.
6063
*/
61-
@property (nonatomic, strong, readonly) UIProgressView *progressView;
64+
@property (PFUI_NULLABLE_PROPERTY nonatomic, strong, readonly) UIProgressView *progressView;
6265

6366
@end
67+
68+
PFUI_ASSUME_NONNULL_END

ParseUI/Classes/Cells/PFTableViewCell.h

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,11 @@
2121

2222
#import <UIKit/UIKit.h>
2323

24+
#import <ParseUI/ParseUIConstants.h>
2425
#import <ParseUI/PFImageView.h>
2526

27+
PFUI_ASSUME_NONNULL_BEGIN
28+
2629
/*!
2730
The `PFTableViewCell` class represents a table view cell which can download and display remote images stored on Parse.
2831
@@ -36,6 +39,8 @@
3639
3740
@see PFImageView
3841
*/
39-
@property (nonatomic, strong, readonly) PFImageView *imageView;
42+
@property (PFUI_NULLABLE_PROPERTY nonatomic, strong, readonly) PFImageView *imageView;
4043

4144
@end
45+
46+
PFUI_ASSUME_NONNULL_END

0 commit comments

Comments
 (0)