Эх сурвалжийг харах

fix : CTAssetPickerController Missed few nullability declarations in #219 #225

Marino Faggiana 7 жил өмнө
parent
commit
3a65bc6c82

+ 4 - 2
Libraries external/CTAssetsPickerController/CTAssetCollectionViewCell.h

@@ -28,7 +28,7 @@
 #import <Photos/Photos.h>
 #import "CTAssetThumbnailStacks.h"
 
-
+NS_ASSUME_NONNULL_BEGIN
 
 @interface CTAssetCollectionViewCell : UITableViewCell
 
@@ -51,4 +51,6 @@
 - (instancetype)initWithThumbnailSize:(CGSize)size reuseIdentifier:(nullable NSString *)reuseIdentifier;
 - (void)bind:(nonnull PHAssetCollection *)collection count:(NSUInteger)count;
 
-@end
+@end
+
+NS_ASSUME_NONNULL_END

+ 4 - 0
Libraries external/CTAssetsPickerController/CTAssetThumbnailStacks.h

@@ -27,6 +27,8 @@
 #import <UIKit/UIKit.h>
 #import "CTAssetThumbnailView.h"
 
+NS_ASSUME_NONNULL_BEGIN
+
 @interface CTAssetThumbnailStacks : UIView
 
 @property (nonatomic, assign) CGSize thumbnailSize;
@@ -37,3 +39,5 @@
 - (void)setHighlighted:(BOOL)highlighted;
 
 @end
+
+NS_ASSUME_NONNULL_END

+ 1 - 1
Libraries external/CTAssetsPickerController/CTAssetsGridViewController.h

@@ -42,7 +42,7 @@
 
 @interface CTAssetsGridViewController : UICollectionViewController
 
-@property (nonatomic, weak) id<CTAssetsGridViewControllerDelegate> delegate;
+@property (nonatomic, weak, nullable) id<CTAssetsGridViewControllerDelegate> delegate;
 @property (nonatomic, strong, nonnull) PHAssetCollection *assetCollection;
 
 @end