Преглед на файлове

Add some missing nullability specifiers

Improve the Swift experience a little bit
Tanner Bennett преди 6 години
родител
ревизия
9cc2470901

+ 4 - 0
Classes/Core/Views/FLEXTableView.h

@@ -8,6 +8,8 @@
 
 
 #import <UIKit/UIKit.h>
 #import <UIKit/UIKit.h>
 
 
+NS_ASSUME_NONNULL_BEGIN
+
 #pragma mark Reuse identifiers
 #pragma mark Reuse identifiers
 
 
 typedef NSString * FLEXTableViewCellReuseIdentifier;
 typedef NSString * FLEXTableViewCellReuseIdentifier;
@@ -42,3 +44,5 @@ extern FLEXTableViewCellReuseIdentifier const kFLEXCodeFontCell;
 - (void)registerCells:(NSDictionary<NSString *, Class> *)registrationMapping;
 - (void)registerCells:(NSDictionary<NSString *, Class> *)registrationMapping;
 
 
 @end
 @end
+
+NS_ASSUME_NONNULL_END

+ 4 - 0
Classes/Manager/FLEXManager+Extensibility.h

@@ -8,6 +8,8 @@
 
 
 #import "FLEXManager.h"
 #import "FLEXManager.h"
 
 
+NS_ASSUME_NONNULL_BEGIN
+
 @interface FLEXManager (Extensibility)
 @interface FLEXManager (Extensibility)
 
 
 #pragma mark - Globals Screen Entries
 #pragma mark - Globals Screen Entries
@@ -58,3 +60,5 @@
                              description:(NSString *)description;
                              description:(NSString *)description;
 
 
 @end
 @end
+
+NS_ASSUME_NONNULL_END

+ 4 - 0
Classes/Manager/FLEXManager+Networking.h

@@ -8,6 +8,8 @@
 
 
 #import "FLEXManager.h"
 #import "FLEXManager.h"
 
 
+NS_ASSUME_NONNULL_BEGIN
+
 @interface FLEXManager (Networking)
 @interface FLEXManager (Networking)
 
 
 /// If this property is set to YES, FLEX will swizzle NSURLConnection*Delegate and NSURLSession*Delegate methods
 /// If this property is set to YES, FLEX will swizzle NSURLConnection*Delegate and NSURLSession*Delegate methods
@@ -34,3 +36,5 @@
             viewControllerFutureBlock:(FLEXCustomContentViewerFuture)viewControllerFutureBlock;
             viewControllerFutureBlock:(FLEXCustomContentViewerFuture)viewControllerFutureBlock;
 
 
 @end
 @end
+
+NS_ASSUME_NONNULL_END

+ 5 - 1
Classes/Manager/FLEXManager.h

@@ -12,6 +12,8 @@
 @class UIWindowScene;
 @class UIWindowScene;
 #endif
 #endif
 
 
+NS_ASSUME_NONNULL_BEGIN
+
 @interface FLEXManager : NSObject
 @interface FLEXManager : NSObject
 
 
 @property (nonatomic, readonly, class) FLEXManager *sharedManager;
 @property (nonatomic, readonly, class) FLEXManager *sharedManager;
@@ -36,4 +38,6 @@
 @end
 @end
 
 
 
 
-typedef UIViewController *(^FLEXCustomContentViewerFuture)(NSData *data);
+typedef UIViewController * _Nullable(^FLEXCustomContentViewerFuture)(NSData *data);
+
+NS_ASSUME_NONNULL_END

+ 5 - 1
Classes/ObjectExplorers/FLEXObjectExplorerFactory.h

@@ -14,9 +14,11 @@
 @class FLEXObjectExplorerViewController;
 @class FLEXObjectExplorerViewController;
 #endif
 #endif
 
 
+NS_ASSUME_NONNULL_BEGIN
+
 @interface FLEXObjectExplorerFactory : NSObject <FLEXGlobalsEntry>
 @interface FLEXObjectExplorerFactory : NSObject <FLEXGlobalsEntry>
 
 
-+ (FLEXObjectExplorerViewController *)explorerViewControllerForObject:(id)object;
++ (nullable FLEXObjectExplorerViewController *)explorerViewControllerForObject:(nullable id)object;
 
 
 /// Register a specific explorer view controller class to be used when exploring
 /// Register a specific explorer view controller class to be used when exploring
 /// an object of a specific class. Calls will overwrite existing registrations.
 /// an object of a specific class. Calls will overwrite existing registrations.
@@ -24,3 +26,5 @@
 + (void)registerExplorerSection:(Class)sectionClass forClass:(Class)objectClass;
 + (void)registerExplorerSection:(Class)sectionClass forClass:(Class)objectClass;
 
 
 @end
 @end
+
+NS_ASSUME_NONNULL_END

+ 4 - 0
Classes/Toolbar/FLEXExplorerToolbar.h

@@ -10,6 +10,8 @@
 
 
 @class FLEXExplorerToolbarItem;
 @class FLEXExplorerToolbarItem;
 
 
+NS_ASSUME_NONNULL_BEGIN
+
 /// Users of the toolbar can configure the enabled state
 /// Users of the toolbar can configure the enabled state
 /// and event target/actions for each item.
 /// and event target/actions for each item.
 @interface FLEXExplorerToolbar : UIView
 @interface FLEXExplorerToolbar : UIView
@@ -52,3 +54,5 @@
 @property (nonatomic, readonly) UIView *selectedViewDescriptionContainer;
 @property (nonatomic, readonly) UIView *selectedViewDescriptionContainer;
 
 
 @end
 @end
+
+NS_ASSUME_NONNULL_END