From 712ac61a4fb18a74019939f8f8c300e1fcea409a Mon Sep 17 00:00:00 2001 From: Joseph Granieri Date: Wed, 17 Aug 2016 14:46:14 +1000 Subject: [PATCH] Fixed issue where NS_UNAVAILABLE is not reported to calling code as it was previously just in the .m file - this allows the compiler to generate a build error when using the init method --- AFNetworking/AFNetworkReachabilityManager.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/AFNetworking/AFNetworkReachabilityManager.h b/AFNetworking/AFNetworkReachabilityManager.h index 0feb18d395..72296d496a 100644 --- a/AFNetworking/AFNetworkReachabilityManager.h +++ b/AFNetworking/AFNetworkReachabilityManager.h @@ -107,6 +107,13 @@ NS_ASSUME_NONNULL_BEGIN */ - (instancetype)initWithReachability:(SCNetworkReachabilityRef)reachability NS_DESIGNATED_INITIALIZER; +/** + * Initializes an instance of a network reachability manager + * + * @return nil as this method is unavailable + */ +- (nullable instancetype)init NS_UNAVAILABLE; + ///-------------------------------------------------- /// @name Starting & Stopping Reachability Monitoring ///--------------------------------------------------