Skip to content

Commit a050a4a

Browse files
committed
add some nullability annotations for swift
1 parent 8701242 commit a050a4a

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

FEPopupMenuController/FEPopupMenuController.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
/**
5454
* the content view background color, default is white
5555
*/
56-
@property (nonatomic, strong) UIColor *contentViewBackgroundColor;
56+
@property (nonatomic, strong) UIColor * __nonnull contentViewBackgroundColor;
5757

5858
/**
5959
* the content view corner radius, default is 8.0

FEPopupMenuController/FEPopupMenuItem.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,26 +16,26 @@ typedef void(^FEPopupMenuItemActionBlock)(void);
1616
/**
1717
* init FEPopupMenuItem with title text and icon image
1818
*/
19-
- (instancetype __nonnull)initWithTitle:(NSString *)title iconImage:(UIImage *)iconImage action:(FEPopupMenuItemActionBlock)action;
19+
- (instancetype __nonnull)initWithTitle:(NSString * __nonnull)title iconImage:(UIImage * __nonnull)iconImage action:(FEPopupMenuItemActionBlock __nullable)action;
2020

2121
/**
2222
* title of item
2323
*/
24-
@property (nonatomic, copy) NSString *title;
24+
@property (nonatomic, copy) NSString * __nullable title;
2525

2626
/**
2727
* icon image of item
2828
*/
29-
@property (nonatomic, strong) UIImage *iconImage;
29+
@property (nonatomic, strong) UIImage * __nullable iconImage;
3030

3131
/**
3232
* callback of item when selected
3333
*/
34-
@property (nonatomic, copy) FEPopupMenuItemActionBlock action;
34+
@property (nonatomic, copy) FEPopupMenuItemActionBlock __nullable action;
3535

3636
/**
3737
* the color of title
3838
*/
39-
@property (nonatomic, strong) UIColor *titleColor;
39+
@property (nonatomic, strong) UIColor * __nullable titleColor;
4040

4141
@end

0 commit comments

Comments
 (0)