diff --git a/Example_Objc.xcodeproj/project.pbxproj b/Example_Objc.xcodeproj/project.pbxproj index a24058534..1bb97c9e0 100644 --- a/Example_Objc.xcodeproj/project.pbxproj +++ b/Example_Objc.xcodeproj/project.pbxproj @@ -7,7 +7,7 @@ objects = { /* Begin PBXBuildFile section */ - 38ED9B542196BE6200371A1C /* CocoaDebugLog.m in Sources */ = {isa = PBXBuildFile; fileRef = 38ED9B522196BE6100371A1C /* CocoaDebugLog.m */; }; + 38F78CA82196F9FF008CFC68 /* CocoaDebugLog.m in Sources */ = {isa = PBXBuildFile; fileRef = 38F78CA72196F9FF008CFC68 /* CocoaDebugLog.m */; }; EA165F01204D2539001472C1 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = EA165F00204D2539001472C1 /* AppDelegate.m */; }; EA165F04204D2539001472C1 /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = EA165F03204D2539001472C1 /* ViewController.m */; }; EA165F07204D2539001472C1 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = EA165F05204D2539001472C1 /* Main.storyboard */; }; @@ -220,9 +220,8 @@ /* End PBXCopyFilesBuildPhase section */ /* Begin PBXFileReference section */ - 38ED9B522196BE6100371A1C /* CocoaDebugLog.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = CocoaDebugLog.m; sourceTree = ""; }; - 38ED9B532196BE6200371A1C /* CocoaDebugLog.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CocoaDebugLog.h; sourceTree = ""; }; - 38ED9B5A2196C31F00371A1C /* Example_Swift-Swift.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Example_Swift-Swift.h"; sourceTree = ""; }; + 38F78CA62196F9FF008CFC68 /* CocoaDebugLog.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CocoaDebugLog.h; sourceTree = ""; }; + 38F78CA72196F9FF008CFC68 /* CocoaDebugLog.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = CocoaDebugLog.m; sourceTree = ""; }; EA165EFC204D2539001472C1 /* Example_Objc.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Example_Objc.app; sourceTree = BUILT_PRODUCTS_DIR; }; EA165EFF204D2539001472C1 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; EA165F00204D2539001472C1 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; @@ -528,9 +527,8 @@ EAB3575320F1C2FB00993661 /* Core */ = { isa = PBXGroup; children = ( - 38ED9B5A2196C31F00371A1C /* Example_Swift-Swift.h */, - 38ED9B532196BE6200371A1C /* CocoaDebugLog.h */, - 38ED9B522196BE6100371A1C /* CocoaDebugLog.m */, + 38F78CA62196F9FF008CFC68 /* CocoaDebugLog.h */, + 38F78CA72196F9FF008CFC68 /* CocoaDebugLog.m */, EAB3575420F1C2FB00993661 /* CocoaDebug.swift */, EAB3575520F1C2FB00993661 /* CocoaDebugSettings.swift */, EAB3575620F1C2FB00993661 /* CocoaDebug.h */, @@ -1087,7 +1085,7 @@ EAF58058204E7434001CA56D /* AFURLSessionManager.m in Sources */, EAB358B820F1C2FC00993661 /* NSObject+UIDebuggingInformationOverlay.m in Sources */, EA165F01204D2539001472C1 /* AppDelegate.m in Sources */, - 38ED9B542196BE6200371A1C /* CocoaDebugLog.m in Sources */, + 38F78CA82196F9FF008CFC68 /* CocoaDebugLog.m in Sources */, EAB358BA20F1C2FC00993661 /* WindowHelper.swift in Sources */, EAB358B920F1C2FC00993661 /* Bubble.swift in Sources */, EAB3582220F1C2FB00993661 /* CrashDetailViewController.swift in Sources */, diff --git a/Example_Swift.xcodeproj/project.pbxproj b/Example_Swift.xcodeproj/project.pbxproj index f8759dace..daa041a37 100644 --- a/Example_Swift.xcodeproj/project.pbxproj +++ b/Example_Swift.xcodeproj/project.pbxproj @@ -7,8 +7,6 @@ objects = { /* Begin PBXBuildFile section */ - 38ED9B572196BF5700371A1C /* CocoaDebugLog.m in Sources */ = {isa = PBXBuildFile; fileRef = 38ED9B552196BF5700371A1C /* CocoaDebugLog.m */; }; - 38ED9B592196C17800371A1C /* Example_Swift-Swift.h in Headers */ = {isa = PBXBuildFile; fileRef = 38ED9B582196C17800371A1C /* Example_Swift-Swift.h */; }; EA0629E020541ACB0071A231 /* CocoaDebugSettings.swift in Sources */ = {isa = PBXBuildFile; fileRef = EA0628E320541ACB0071A231 /* CocoaDebugSettings.swift */; }; EA0629E120541ACB0071A231 /* CocoaDebug.swift in Sources */ = {isa = PBXBuildFile; fileRef = EA0628E520541ACB0071A231 /* CocoaDebug.swift */; }; EA0629E220541ACB0071A231 /* CocoaDebug+Extensions.swift in Sources */ = {isa = PBXBuildFile; fileRef = EA0628E620541ACB0071A231 /* CocoaDebug+Extensions.swift */; }; @@ -465,9 +463,6 @@ /* End PBXCopyFilesBuildPhase section */ /* Begin PBXFileReference section */ - 38ED9B552196BF5700371A1C /* CocoaDebugLog.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = CocoaDebugLog.m; sourceTree = ""; }; - 38ED9B562196BF5700371A1C /* CocoaDebugLog.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CocoaDebugLog.h; sourceTree = ""; }; - 38ED9B582196C17800371A1C /* Example_Swift-Swift.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "Example_Swift-Swift.h"; sourceTree = ""; }; EA0628E320541ACB0071A231 /* CocoaDebugSettings.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = CocoaDebugSettings.swift; sourceTree = ""; }; EA0628E420541ACB0071A231 /* CocoaDebug.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CocoaDebug.h; sourceTree = ""; }; EA0628E520541ACB0071A231 /* CocoaDebug.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = CocoaDebug.swift; sourceTree = ""; }; @@ -811,9 +806,6 @@ EA0628E220541ACB0071A231 /* Core */ = { isa = PBXGroup; children = ( - 38ED9B582196C17800371A1C /* Example_Swift-Swift.h */, - 38ED9B562196BF5700371A1C /* CocoaDebugLog.h */, - 38ED9B552196BF5700371A1C /* CocoaDebugLog.m */, EA0628E320541ACB0071A231 /* CocoaDebugSettings.swift */, EA0628E420541ACB0071A231 /* CocoaDebug.h */, EA0628E520541ACB0071A231 /* CocoaDebug.swift */, @@ -1328,7 +1320,6 @@ EAF55B1A2055417C003E310F /* NetworkHelper.h in Headers */, EA2E345220F11DC100FBCFCF /* copy_and_codesign.sh in Headers */, EAFA4F9920ADB16600FEFF1E /* CacheStoragePolicy.h in Headers */, - 38ED9B592196C17800371A1C /* Example_Swift-Swift.h in Headers */, EA617D5220902FFC00EFDCCD /* WeakProxy.h in Headers */, EAF55B1B2055417C003E310F /* MLBFileInfo.h in Headers */, EAF55B1C2055417C003E310F /* FileTableViewCell.h in Headers */, @@ -1735,7 +1726,6 @@ EAF5801E204E73C3001CA56D /* NSFileManager+Helpers.swift in Sources */, EA062AB520541ACB0071A231 /* WindowHelper.swift in Sources */, EAF5801A204E73C3001CA56D /* NetworkActivityIndicator.swift in Sources */, - 38ED9B572196BF5700371A1C /* CocoaDebugLog.m in Sources */, EAF58018204E73C3001CA56D /* ServerTrustPolicy.swift in Sources */, EAF58041204E73C3001CA56D /* ASIDataDecompressor.m in Sources */, EA062A9D20541ACB0071A231 /* CustomProtocol.m in Sources */, diff --git a/Sources/Core/CocoaDebugLog.m b/Sources/Core/CocoaDebugLog.m index 7e41b934d..8892900bd 100644 --- a/Sources/Core/CocoaDebugLog.m +++ b/Sources/Core/CocoaDebugLog.m @@ -7,7 +7,7 @@ // #import "CocoaDebugLog.h" -#import "Example_Swift-Swift.h" +//#import "Example_Swift-Swift.h" @implementation CocoaDebugLog diff --git a/Sources/Core/Example_Swift-Swift.h b/Sources/Core/Example_Swift-Swift.h deleted file mode 100644 index 59cd45e81..000000000 --- a/Sources/Core/Example_Swift-Swift.h +++ /dev/null @@ -1,1029 +0,0 @@ -// Generated by Apple Swift version 4.2.1 (swiftlang-1000.11.42 clang-1000.11.45.1) -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wgcc-compat" - -#if !defined(__has_include) -# define __has_include(x) 0 -#endif -#if !defined(__has_attribute) -# define __has_attribute(x) 0 -#endif -#if !defined(__has_feature) -# define __has_feature(x) 0 -#endif -#if !defined(__has_warning) -# define __has_warning(x) 0 -#endif - -#if __has_include() -# include -#endif - -#pragma clang diagnostic ignored "-Wauto-import" -#include -#include -#include -#include - -#if !defined(SWIFT_TYPEDEFS) -# define SWIFT_TYPEDEFS 1 -# if __has_include() -# include -# elif !defined(__cplusplus) -typedef uint_least16_t char16_t; -typedef uint_least32_t char32_t; -# endif -typedef float swift_float2 __attribute__((__ext_vector_type__(2))); -typedef float swift_float3 __attribute__((__ext_vector_type__(3))); -typedef float swift_float4 __attribute__((__ext_vector_type__(4))); -typedef double swift_double2 __attribute__((__ext_vector_type__(2))); -typedef double swift_double3 __attribute__((__ext_vector_type__(3))); -typedef double swift_double4 __attribute__((__ext_vector_type__(4))); -typedef int swift_int2 __attribute__((__ext_vector_type__(2))); -typedef int swift_int3 __attribute__((__ext_vector_type__(3))); -typedef int swift_int4 __attribute__((__ext_vector_type__(4))); -typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2))); -typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3))); -typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); -#endif - -#if !defined(SWIFT_PASTE) -# define SWIFT_PASTE_HELPER(x, y) x##y -# define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y) -#endif -#if !defined(SWIFT_METATYPE) -# define SWIFT_METATYPE(X) Class -#endif -#if !defined(SWIFT_CLASS_PROPERTY) -# if __has_feature(objc_class_property) -# define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__ -# else -# define SWIFT_CLASS_PROPERTY(...) -# endif -#endif - -#if __has_attribute(objc_runtime_name) -# define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) -#else -# define SWIFT_RUNTIME_NAME(X) -#endif -#if __has_attribute(swift_name) -# define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) -#else -# define SWIFT_COMPILE_NAME(X) -#endif -#if __has_attribute(objc_method_family) -# define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) -#else -# define SWIFT_METHOD_FAMILY(X) -#endif -#if __has_attribute(noescape) -# define SWIFT_NOESCAPE __attribute__((noescape)) -#else -# define SWIFT_NOESCAPE -#endif -#if __has_attribute(warn_unused_result) -# define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) -#else -# define SWIFT_WARN_UNUSED_RESULT -#endif -#if __has_attribute(noreturn) -# define SWIFT_NORETURN __attribute__((noreturn)) -#else -# define SWIFT_NORETURN -#endif -#if !defined(SWIFT_CLASS_EXTRA) -# define SWIFT_CLASS_EXTRA -#endif -#if !defined(SWIFT_PROTOCOL_EXTRA) -# define SWIFT_PROTOCOL_EXTRA -#endif -#if !defined(SWIFT_ENUM_EXTRA) -# define SWIFT_ENUM_EXTRA -#endif -#if !defined(SWIFT_CLASS) -# if __has_attribute(objc_subclassing_restricted) -# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA -# define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA -# else -# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA -# define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA -# endif -#endif - -#if !defined(SWIFT_PROTOCOL) -# define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA -# define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA -#endif - -#if !defined(SWIFT_EXTENSION) -# define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__) -#endif - -#if !defined(OBJC_DESIGNATED_INITIALIZER) -# if __has_attribute(objc_designated_initializer) -# define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer)) -# else -# define OBJC_DESIGNATED_INITIALIZER -# endif -#endif -#if !defined(SWIFT_ENUM_ATTR) -# if defined(__has_attribute) && __has_attribute(enum_extensibility) -# define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility))) -# else -# define SWIFT_ENUM_ATTR(_extensibility) -# endif -#endif -#if !defined(SWIFT_ENUM) -# define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type -# if __has_feature(generalized_swift_name) -# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) enum _name : _type _name SWIFT_COMPILE_NAME(SWIFT_NAME); enum SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type -# else -# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility) -# endif -#endif -#if !defined(SWIFT_UNAVAILABLE) -# define SWIFT_UNAVAILABLE __attribute__((unavailable)) -#endif -#if !defined(SWIFT_UNAVAILABLE_MSG) -# define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg))) -#endif -#if !defined(SWIFT_AVAILABILITY) -# define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__))) -#endif -#if !defined(SWIFT_DEPRECATED) -# define SWIFT_DEPRECATED __attribute__((deprecated)) -#endif -#if !defined(SWIFT_DEPRECATED_MSG) -# define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__))) -#endif -#if __has_feature(attribute_diagnose_if_objc) -# define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning"))) -#else -# define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) -#endif -#if __has_feature(modules) -@import CoreGraphics; -@import Foundation; -@import MessageUI; -@import ObjectiveC; -@import UIKit; -#endif - -#pragma clang diagnostic ignored "-Wproperty-attribute-mismatch" -#pragma clang diagnostic ignored "-Wduplicate-method-arg" -#if __has_warning("-Wpragma-clang-attribute") -# pragma clang diagnostic ignored "-Wpragma-clang-attribute" -#endif -#pragma clang diagnostic ignored "-Wunknown-pragmas" -#pragma clang diagnostic ignored "-Wnullability" - -#if __has_attribute(external_source_symbol) -# pragma push_macro("any") -# undef any -# pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="Example_Swift",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol)) -# pragma pop_macro("any") -#endif - -@class UITapGestureRecognizer; -@class NSBundle; -@class NSCoder; - -SWIFT_CLASS("_TtC13Example_Swift19AboutViewController") -@interface AboutViewController : UITableViewController -- (void)viewDidLoad; -- (IBAction)tapUrl:(UITapGestureRecognizer * _Nonnull)sender; -- (nonnull instancetype)initWithStyle:(UITableViewStyle)style OBJC_DESIGNATED_INITIALIZER; -- (nonnull instancetype)initWithNibName:(NSString * _Nullable)nibNameOrNil bundle:(NSBundle * _Nullable)nibBundleOrNil OBJC_DESIGNATED_INITIALIZER; -- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)aDecoder OBJC_DESIGNATED_INITIALIZER; -@end - -@class UIWindow; -@class UIApplication; - -SWIFT_CLASS("_TtC13Example_Swift11AppDelegate") -@interface AppDelegate : UIResponder -@property (nonatomic, strong) UIWindow * _Nullable window; -- (BOOL)application:(UIApplication * _Nonnull)application didFinishLaunchingWithOptions:(NSDictionary * _Nullable)launchOptions SWIFT_WARN_UNUSED_RESULT; -- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; -@end - -@class UILabel; - -SWIFT_CLASS("_TtC13Example_Swift21AppInfoViewController") -@interface AppInfoViewController : UITableViewController -@property (nonatomic, weak) IBOutlet UILabel * _Null_unspecified labelVersionNumber; -@property (nonatomic, weak) IBOutlet UILabel * _Null_unspecified labelBuildNumber; -@property (nonatomic, weak) IBOutlet UILabel * _Null_unspecified labelBundleName; -@property (nonatomic, weak) IBOutlet UILabel * _Null_unspecified labelScreenResolution; -@property (nonatomic, weak) IBOutlet UILabel * _Null_unspecified labelScreenSize; -@property (nonatomic, weak) IBOutlet UILabel * _Null_unspecified labelDeviceModel; -@property (nonatomic, weak) IBOutlet UILabel * _Null_unspecified labelCrashCount; -@property (nonatomic, weak) IBOutlet UILabel * _Null_unspecified labelBundleID; -@property (nonatomic, weak) IBOutlet UILabel * _Null_unspecified labelignoredURLs; -@property (nonatomic, weak) IBOutlet UILabel * _Null_unspecified labelserverURL; -@property (nonatomic, weak) IBOutlet UILabel * _Null_unspecified labelIOSVersion; -- (void)viewDidLoad; -- (void)viewWillAppear:(BOOL)animated; -- (nonnull instancetype)initWithStyle:(UITableViewStyle)style OBJC_DESIGNATED_INITIALIZER; -- (nonnull instancetype)initWithNibName:(NSString * _Nullable)nibNameOrNil bundle:(NSBundle * _Nullable)nibBundleOrNil OBJC_DESIGNATED_INITIALIZER; -- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)aDecoder OBJC_DESIGNATED_INITIALIZER; -@end - -@class UITableView; - -@interface AppInfoViewController (SWIFT_EXTENSION(Example_Swift)) -- (CGFloat)tableView:(UITableView * _Nonnull)tableView heightForHeaderInSection:(NSInteger)section SWIFT_WARN_UNUSED_RESULT; -- (CGFloat)tableView:(UITableView * _Nonnull)tableView heightForRowAtIndexPath:(NSIndexPath * _Nonnull)indexPath SWIFT_WARN_UNUSED_RESULT; -- (void)tableView:(UITableView * _Nonnull)tableView didSelectRowAtIndexPath:(NSIndexPath * _Nonnull)indexPath; -@end - -@class UILongPressGestureRecognizer; -@class UIPanGestureRecognizer; - -SWIFT_CLASS("_TtC13Example_Swift6Bubble") -@interface Bubble : UIView -- (nonnull instancetype)initWithFrame:(CGRect)frame OBJC_DESIGNATED_INITIALIZER; -- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)aDecoder OBJC_DESIGNATED_INITIALIZER; -- (void)reloadHttp_notification:(NSNotification * _Nonnull)notification; -- (void)timerMonitor; -- (void)tap; -- (void)longPressWithSender:(UILongPressGestureRecognizer * _Nonnull)sender SWIFT_AVAILABILITY(ios,introduced=11.0); -- (void)longPress2WithSender:(UILongPressGestureRecognizer * _Nonnull)sender SWIFT_AVAILABILITY(ios,introduced=10.0); -- (void)panDidFireWithPanner:(UIPanGestureRecognizer * _Nonnull)panner; -@end - -@class UIViewController; - -SWIFT_CLASS("_TtC13Example_Swift10CocoaDebug") -@interface CocoaDebug : NSObject -/// if the crawled URLs contain server URL ,set these URLs bold font to be marked. not mark when this value is nil. default value is nil. -SWIFT_CLASS_PROPERTY(@property (nonatomic, class, copy) NSString * _Nullable serverURL;) -+ (NSString * _Nullable)serverURL SWIFT_WARN_UNUSED_RESULT; -+ (void)setServerURL:(NSString * _Nullable)value; -/// set the URLs which should not crawled, ignoring case, crawl all URLs when the value is nil. default value is nil. -SWIFT_CLASS_PROPERTY(@property (nonatomic, class, copy) NSArray * _Nullable ignoredURLs;) -+ (NSArray * _Nullable)ignoredURLs SWIFT_WARN_UNUSED_RESULT; -+ (void)setIgnoredURLs:(NSArray * _Nullable)value; -/// set the URLs which are only crawled, ignoring case, crawl all URLs when the value is nil. default value is nil. -SWIFT_CLASS_PROPERTY(@property (nonatomic, class, copy) NSArray * _Nullable onlyURLs;) -+ (NSArray * _Nullable)onlyURLs SWIFT_WARN_UNUSED_RESULT; -+ (void)setOnlyURLs:(NSArray * _Nullable)value; -/// set controllers to be added as child controllers of UITabBarController. default value is nil. -SWIFT_CLASS_PROPERTY(@property (nonatomic, class, copy) NSArray * _Nullable tabBarControllers;) -+ (NSArray * _Nullable)tabBarControllers SWIFT_WARN_UNUSED_RESULT; -+ (void)setTabBarControllers:(NSArray * _Nullable)value; -/// whether to allow the recording of crash logs in app. default value is false. -SWIFT_CLASS_PROPERTY(@property (nonatomic, class) BOOL recordCrash;) -+ (BOOL)recordCrash SWIFT_WARN_UNUSED_RESULT; -+ (void)setRecordCrash:(BOOL)value; -/// the maximum count of logs which CocoaDebug display. default value is 500. -SWIFT_CLASS_PROPERTY(@property (nonatomic, class) NSInteger logMaxCount;) -+ (NSInteger)logMaxCount SWIFT_WARN_UNUSED_RESULT; -+ (void)setLogMaxCount:(NSInteger)value; -/// set the initial recipients to include in the email’s “To” field when share via email. default value is nil. -SWIFT_CLASS_PROPERTY(@property (nonatomic, class, copy) NSArray * _Nullable emailToRecipients;) -+ (NSArray * _Nullable)emailToRecipients SWIFT_WARN_UNUSED_RESULT; -+ (void)setEmailToRecipients:(NSArray * _Nullable)value; -/// set the initial recipients to include in the email’s “Cc” field when share via email. default value is nil. -SWIFT_CLASS_PROPERTY(@property (nonatomic, class, copy) NSArray * _Nullable emailCcRecipients;) -+ (NSArray * _Nullable)emailCcRecipients SWIFT_WARN_UNUSED_RESULT; -+ (void)setEmailCcRecipients:(NSArray * _Nullable)value; -/// set the main color with hexadecimal format. default value is #42d459. -SWIFT_CLASS_PROPERTY(@property (nonatomic, class, copy) NSString * _Nonnull mainColor;) -+ (NSString * _Nonnull)mainColor SWIFT_WARN_UNUSED_RESULT; -+ (void)setMainColor:(NSString * _Nonnull)value; -/// whether to disable the monitoring of Xcode logs in app. default value is false. -SWIFT_CLASS_PROPERTY(@property (nonatomic, class) BOOL disableLogMonitoring;) -+ (BOOL)disableLogMonitoring SWIFT_WARN_UNUSED_RESULT; -+ (void)setDisableLogMonitoring:(BOOL)value; -/// whether to disable the monitoring of networks in app. default value is false. -SWIFT_CLASS_PROPERTY(@property (nonatomic, class) BOOL disableNetworkMonitoring;) -+ (BOOL)disableNetworkMonitoring SWIFT_WARN_UNUSED_RESULT; -+ (void)setDisableNetworkMonitoring:(BOOL)value; -+ (void)enable; -+ (void)disable; -- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; -@end - - - - -SWIFT_CLASS("_TtC13Example_Swift30CocoaDebugNavigationController") -@interface CocoaDebugNavigationController : UINavigationController -- (void)viewDidLoad; -- (void)exit; -- (nonnull instancetype)initWithNavigationBarClass:(Class _Nullable)navigationBarClass toolbarClass:(Class _Nullable)toolbarClass OBJC_DESIGNATED_INITIALIZER SWIFT_AVAILABILITY(ios,introduced=5.0); -- (nonnull instancetype)initWithRootViewController:(UIViewController * _Nonnull)rootViewController OBJC_DESIGNATED_INITIALIZER; -- (nonnull instancetype)initWithNibName:(NSString * _Nullable)nibNameOrNil bundle:(NSBundle * _Nullable)nibBundleOrNil OBJC_DESIGNATED_INITIALIZER; -- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)aDecoder OBJC_DESIGNATED_INITIALIZER; -@end - - -SWIFT_CLASS("_TtC13Example_Swift18CocoaDebugSettings") -@interface CocoaDebugSettings : NSObject -SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) CocoaDebugSettings * _Nonnull shared;) -+ (CocoaDebugSettings * _Nonnull)shared SWIFT_WARN_UNUSED_RESULT; -@property (nonatomic) BOOL responseShake; -@property (nonatomic) BOOL responseShakeNetworkDetail; -@property (nonatomic, copy) NSString * _Nullable firstIn; -@property (nonatomic) BOOL recordCrash; -@property (nonatomic) BOOL visible; -@property (nonatomic) BOOL showBubbleAndWindow; -@property (nonatomic, copy) NSString * _Nullable serverURL; -@property (nonatomic) NSInteger tabBarSelectItem; -@property (nonatomic) NSInteger logSelectIndex; -@property (nonatomic) float bubbleFrameX; -@property (nonatomic) float bubbleFrameY; -@property (nonatomic, copy) NSString * _Nullable logSearchWordDefault; -@property (nonatomic, copy) NSString * _Nullable logSearchWordColor; -@property (nonatomic, copy) NSString * _Nullable networkSearchWord; -@property (nonatomic, copy) NSString * _Nonnull mainColor; -@property (nonatomic, copy) NSArray * _Nullable tabBarControllers; -@property (nonatomic, copy) NSArray * _Nullable emailToRecipients; -@property (nonatomic, copy) NSArray * _Nullable emailCcRecipients; -@property (nonatomic) NSInteger logMaxCount; -@property (nonatomic, copy) NSArray * _Nullable onlyURLs; -@property (nonatomic, copy) NSArray * _Nullable ignoredURLs; -- (nonnull instancetype)init SWIFT_UNAVAILABLE; -+ (nonnull instancetype)new SWIFT_DEPRECATED_MSG("-init is unavailable"); -@end - -@class UITraitCollection; - -SWIFT_CLASS("_TtC13Example_Swift26CocoaDebugTabBarController") -@interface CocoaDebugTabBarController : UITabBarController -- (void)viewDidLoad; -- (void)viewWillAppear:(BOOL)animated; -- (void)viewWillDisappear:(BOOL)animated; -- (void)exit; -@property (nonatomic, readonly, strong) UITraitCollection * _Nonnull traitCollection; -- (nonnull instancetype)initWithNibName:(NSString * _Nullable)nibNameOrNil bundle:(NSBundle * _Nullable)nibBundleOrNil OBJC_DESIGNATED_INITIALIZER; -- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)aDecoder OBJC_DESIGNATED_INITIALIZER; -@end - -@class UITabBar; -@class UITabBarItem; - -@interface CocoaDebugTabBarController (SWIFT_EXTENSION(Example_Swift)) -- (void)tabBar:(UITabBar * _Nonnull)tabBar didSelectItem:(UITabBarItem * _Nonnull)item; -@end - -@protocol UIViewControllerTransitionCoordinator; - -SWIFT_CLASS("_TtC13Example_Swift24CocoaDebugViewController") -@interface CocoaDebugViewController : UIViewController -- (void)viewDidLayoutSubviews; -- (void)viewWillTransitionToSize:(CGSize)size withTransitionCoordinator:(id _Nonnull)coordinator; -- (void)viewDidLoad; -- (void)viewWillAppear:(BOOL)animated; -- (nonnull instancetype)initWithNibName:(NSString * _Nullable)nibNameOrNil bundle:(NSBundle * _Nullable)nibBundleOrNil OBJC_DESIGNATED_INITIALIZER; -- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)aDecoder OBJC_DESIGNATED_INITIALIZER; -@end - - - -@class UIEvent; - -SWIFT_CLASS("_TtC13Example_Swift16CocoaDebugWindow") -@interface CocoaDebugWindow : UIWindow -- (nonnull instancetype)initWithFrame:(CGRect)frame OBJC_DESIGNATED_INITIALIZER; -- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)aDecoder OBJC_DESIGNATED_INITIALIZER; -- (BOOL)pointInside:(CGPoint)point withEvent:(UIEvent * _Nullable)event SWIFT_WARN_UNUSED_RESULT; -@end - -@class UITextView; - -SWIFT_CLASS("_TtC13Example_Swift9CrashCell") -@interface CrashCell : UITableViewCell -@property (nonatomic, weak) IBOutlet UITextView * _Null_unspecified textview; -- (void)awakeFromNib; -- (nonnull instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString * _Nullable)reuseIdentifier OBJC_DESIGNATED_INITIALIZER SWIFT_AVAILABILITY(ios,introduced=3.0); -- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)aDecoder OBJC_DESIGNATED_INITIALIZER; -@end - - -SWIFT_CLASS("_TtC13Example_Swift25CrashDetailViewController") -@interface CrashDetailViewController : UITableViewController -@property (nonatomic, weak) IBOutlet UITextView * _Null_unspecified textviewName; -@property (nonatomic, weak) IBOutlet UITextView * _Null_unspecified textviewReason; -@property (nonatomic, weak) IBOutlet UITextView * _Null_unspecified textviewStackTraces; -- (void)viewDidLoad; -- (nonnull instancetype)initWithStyle:(UITableViewStyle)style OBJC_DESIGNATED_INITIALIZER; -- (nonnull instancetype)initWithNibName:(NSString * _Nullable)nibNameOrNil bundle:(NSBundle * _Nullable)nibBundleOrNil OBJC_DESIGNATED_INITIALIZER; -- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)aDecoder OBJC_DESIGNATED_INITIALIZER; -@end - - -@interface CrashDetailViewController (SWIFT_EXTENSION(Example_Swift)) -- (CGFloat)tableView:(UITableView * _Nonnull)tableView heightForRowAtIndexPath:(NSIndexPath * _Nonnull)indexPath SWIFT_WARN_UNUSED_RESULT; -- (CGFloat)tableView:(UITableView * _Nonnull)tableView estimatedHeightForRowAtIndexPath:(NSIndexPath * _Nonnull)indexPath SWIFT_WARN_UNUSED_RESULT; -@end - - -SWIFT_CLASS("_TtC13Example_Swift23CrashListViewController") -@interface CrashListViewController : UITableViewController -- (void)viewDidLoad; -- (void)deleteCrashes; -- (nonnull instancetype)initWithStyle:(UITableViewStyle)style OBJC_DESIGNATED_INITIALIZER; -- (nonnull instancetype)initWithNibName:(NSString * _Nullable)nibNameOrNil bundle:(NSBundle * _Nullable)nibBundleOrNil OBJC_DESIGNATED_INITIALIZER; -- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)aDecoder OBJC_DESIGNATED_INITIALIZER; -@end - - -@interface CrashListViewController (SWIFT_EXTENSION(Example_Swift)) -- (NSInteger)tableView:(UITableView * _Nonnull)tableView numberOfRowsInSection:(NSInteger)section SWIFT_WARN_UNUSED_RESULT; -- (UITableViewCell * _Nonnull)tableView:(UITableView * _Nonnull)tableView cellForRowAtIndexPath:(NSIndexPath * _Nonnull)indexPath SWIFT_WARN_UNUSED_RESULT; -@end - -@class UISwipeActionsConfiguration; - -@interface CrashListViewController (SWIFT_EXTENSION(Example_Swift)) -- (void)tableView:(UITableView * _Nonnull)tableView didSelectRowAtIndexPath:(NSIndexPath * _Nonnull)indexPath; -- (UISwipeActionsConfiguration * _Nullable)tableView:(UITableView * _Nonnull)tableView trailingSwipeActionsConfigurationForRowAtIndexPath:(NSIndexPath * _Nonnull)indexPath SWIFT_WARN_UNUSED_RESULT SWIFT_AVAILABILITY(ios,introduced=11.0); -- (UITableViewCellEditingStyle)tableView:(UITableView * _Nonnull)tableView editingStyleForRowAtIndexPath:(NSIndexPath * _Nonnull)indexPath SWIFT_WARN_UNUSED_RESULT; -- (NSString * _Nullable)tableView:(UITableView * _Nonnull)tableView titleForDeleteConfirmationButtonForRowAtIndexPath:(NSIndexPath * _Nonnull)indexPath SWIFT_WARN_UNUSED_RESULT; -- (BOOL)tableView:(UITableView * _Nonnull)tableView canEditRowAtIndexPath:(NSIndexPath * _Nonnull)indexPath SWIFT_WARN_UNUSED_RESULT; -- (void)tableView:(UITableView * _Nonnull)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath * _Nonnull)indexPath; -@end - - -SWIFT_CLASS("_TtC13Example_Swift10CrashModel") -@interface CrashModel : NSObject -- (void)encodeWithCoder:(NSCoder * _Nonnull)aCoder; -- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)aDecoder OBJC_DESIGNATED_INITIALIZER; -- (nonnull instancetype)init SWIFT_UNAVAILABLE; -+ (nonnull instancetype)new SWIFT_DEPRECATED_MSG("-init is unavailable"); -@end - -@class NSURLSession; -@class NSURLSessionTask; -@class NSHTTPURLResponse; -@class NSURLAuthenticationChallenge; -@class NSURLCredential; -@class NSInputStream; - -/// The task delegate is responsible for handling all delegate callbacks for the underlying task as well as -/// executing all operations attached to the serial operation queue upon task completion. -SWIFT_CLASS("_TtC13Example_Swift12TaskDelegate") -@interface TaskDelegate : NSObject -- (void)URLSession:(NSURLSession * _Nonnull)session task:(NSURLSessionTask * _Nonnull)task willPerformHTTPRedirection:(NSHTTPURLResponse * _Nonnull)response newRequest:(NSURLRequest * _Nonnull)request completionHandler:(void (^ _Nonnull)(NSURLRequest * _Nullable))completionHandler; -- (void)URLSession:(NSURLSession * _Nonnull)session task:(NSURLSessionTask * _Nonnull)task didReceiveChallenge:(NSURLAuthenticationChallenge * _Nonnull)challenge completionHandler:(void (^ _Nonnull)(enum NSURLSessionAuthChallengeDisposition, NSURLCredential * _Nullable))completionHandler; -- (void)URLSession:(NSURLSession * _Nonnull)session task:(NSURLSessionTask * _Nonnull)task needNewBodyStream:(void (^ _Nonnull)(NSInputStream * _Nullable))completionHandler; -- (void)URLSession:(NSURLSession * _Nonnull)session task:(NSURLSessionTask * _Nonnull)task didCompleteWithError:(NSError * _Nullable)error; -- (nonnull instancetype)init SWIFT_UNAVAILABLE; -+ (nonnull instancetype)new SWIFT_DEPRECATED_MSG("-init is unavailable"); -@end - -@class NSURLSessionDataTask; -@class NSURLResponse; -@class NSURLSessionDownloadTask; -@class NSCachedURLResponse; - -SWIFT_CLASS("_TtC13Example_Swift16DataTaskDelegate") -@interface DataTaskDelegate : TaskDelegate -- (void)URLSession:(NSURLSession * _Nonnull)session dataTask:(NSURLSessionDataTask * _Nonnull)dataTask didReceiveResponse:(NSURLResponse * _Nonnull)response completionHandler:(void (^ _Nonnull)(enum NSURLSessionResponseDisposition))completionHandler; -- (void)URLSession:(NSURLSession * _Nonnull)session dataTask:(NSURLSessionDataTask * _Nonnull)dataTask didBecomeDownloadTask:(NSURLSessionDownloadTask * _Nonnull)downloadTask; -- (void)URLSession:(NSURLSession * _Nonnull)session dataTask:(NSURLSessionDataTask * _Nonnull)dataTask didReceiveData:(NSData * _Nonnull)data; -- (void)URLSession:(NSURLSession * _Nonnull)session dataTask:(NSURLSessionDataTask * _Nonnull)dataTask willCacheResponse:(NSCachedURLResponse * _Nonnull)proposedResponse completionHandler:(void (^ _Nonnull)(NSCachedURLResponse * _Nullable))completionHandler; -@end - - -/// Absorb all the delegates methods of NSURLSession and forwards them to pretty closures. -/// This is basically the sin eater for NSURLSession. -SWIFT_CLASS("_TtC13Example_Swift15DelegateManager") -@interface DelegateManager : NSObject -- (void)URLSession:(NSURLSession * _Nonnull)session dataTask:(NSURLSessionDataTask * _Nonnull)dataTask didReceiveData:(NSData * _Nonnull)data; -- (void)URLSession:(NSURLSession * _Nonnull)session task:(NSURLSessionTask * _Nonnull)task didCompleteWithError:(NSError * _Nullable)error; -- (void)URLSession:(NSURLSession * _Nonnull)session task:(NSURLSessionTask * _Nonnull)task didReceiveChallenge:(NSURLAuthenticationChallenge * _Nonnull)challenge completionHandler:(void (^ _Nonnull)(enum NSURLSessionAuthChallengeDisposition, NSURLCredential * _Nullable))completionHandler; -- (void)URLSession:(NSURLSession * _Nonnull)session task:(NSURLSessionTask * _Nonnull)task didSendBodyData:(int64_t)bytesSent totalBytesSent:(int64_t)totalBytesSent totalBytesExpectedToSend:(int64_t)totalBytesExpectedToSend; -- (void)URLSession:(NSURLSession * _Nonnull)session downloadTask:(NSURLSessionDownloadTask * _Nonnull)downloadTask didWriteData:(int64_t)bytesWritten totalBytesWritten:(int64_t)totalBytesWritten totalBytesExpectedToWrite:(int64_t)totalBytesExpectedToWrite; -- (void)URLSession:(NSURLSession * _Nonnull)session downloadTask:(NSURLSessionDownloadTask * _Nonnull)downloadTask didFinishDownloadingToURL:(NSURL * _Nonnull)location; -- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; -@end - - -SWIFT_CLASS("_TtC13Example_Swift20DownloadTaskDelegate") -@interface DownloadTaskDelegate : TaskDelegate -- (void)URLSession:(NSURLSession * _Nonnull)session downloadTask:(NSURLSessionDownloadTask * _Nonnull)downloadTask didFinishDownloadingToURL:(NSURL * _Nonnull)location; -- (void)URLSession:(NSURLSession * _Nonnull)session downloadTask:(NSURLSessionDownloadTask * _Nonnull)downloadTask didWriteData:(int64_t)bytesWritten totalBytesWritten:(int64_t)totalBytesWritten totalBytesExpectedToWrite:(int64_t)totalBytesExpectedToWrite; -- (void)URLSession:(NSURLSession * _Nonnull)session downloadTask:(NSURLSessionDownloadTask * _Nonnull)downloadTask didResumeAtOffset:(int64_t)fileOffset expectedTotalBytes:(int64_t)expectedTotalBytes; -@end - - - - -SWIFT_CLASS("_TtC13Example_Swift25IgnoredURLsViewController") -@interface IgnoredURLsViewController : UITableViewController -- (void)viewDidLoad; -- (nonnull instancetype)initWithStyle:(UITableViewStyle)style OBJC_DESIGNATED_INITIALIZER; -- (nonnull instancetype)initWithNibName:(NSString * _Nullable)nibNameOrNil bundle:(NSBundle * _Nullable)nibBundleOrNil OBJC_DESIGNATED_INITIALIZER; -- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)aDecoder OBJC_DESIGNATED_INITIALIZER; -@end - - -@interface IgnoredURLsViewController (SWIFT_EXTENSION(Example_Swift)) -- (NSInteger)tableView:(UITableView * _Nonnull)tableView numberOfRowsInSection:(NSInteger)section SWIFT_WARN_UNUSED_RESULT; -- (UITableViewCell * _Nonnull)tableView:(UITableView * _Nonnull)tableView cellForRowAtIndexPath:(NSIndexPath * _Nonnull)indexPath SWIFT_WARN_UNUSED_RESULT; -@end - -@class UIImageView; - -SWIFT_CLASS("_TtC13Example_Swift18JsonViewController") -@interface JsonViewController : UIViewController -@property (nonatomic, weak) IBOutlet UITextView * _Null_unspecified textView; -@property (nonatomic, weak) IBOutlet UIImageView * _Null_unspecified imageView; -- (void)viewWillAppear:(BOOL)animated; -- (void)viewWillDisappear:(BOOL)animated; -- (void)viewDidLoad; -- (BOOL)canPerformAction:(SEL _Nonnull)action withSender:(id _Nullable)sender SWIFT_WARN_UNUSED_RESULT; -- (void)selectAll:(id _Nullable)sender; -- (nonnull instancetype)initWithNibName:(NSString * _Nullable)nibNameOrNil bundle:(NSBundle * _Nullable)nibBundleOrNil OBJC_DESIGNATED_INITIALIZER; -- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)aDecoder OBJC_DESIGNATED_INITIALIZER; -@end - - -SWIFT_CLASS("_TtC13Example_Swift7LogCell") -@interface LogCell : UITableViewCell -@property (nonatomic, weak) IBOutlet UITextView * _Null_unspecified labelContent; -@property (nonatomic, weak) IBOutlet UIView * _Null_unspecified viewTypeLogColor; -- (BOOL)canPerformAction:(SEL _Nonnull)action withSender:(id _Nullable)sender SWIFT_WARN_UNUSED_RESULT; -- (void)selectAll:(id _Nullable)sender; -- (nonnull instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString * _Nullable)reuseIdentifier OBJC_DESIGNATED_INITIALIZER SWIFT_AVAILABILITY(ios,introduced=3.0); -- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)aDecoder OBJC_DESIGNATED_INITIALIZER; -@end - -@class UIColor; - -SWIFT_CLASS("_TtC13Example_Swift9LogHelper") -@interface LogHelper : NSObject -SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) LogHelper * _Nonnull shared;) -+ (LogHelper * _Nonnull)shared SWIFT_WARN_UNUSED_RESULT; -- (nonnull instancetype)init SWIFT_UNAVAILABLE; -+ (nonnull instancetype)new SWIFT_DEPRECATED_MSG("-init is unavailable"); -- (void)objcHandleLogWithFile:(NSString * _Nullable)file function:(NSString * _Nullable)function line:(NSInteger)line message:(NSString * _Nonnull)message color:(UIColor * _Nullable)color; -@end - -@class UISegmentedControl; -@class UIBarButtonItem; -@class UISearchBar; - -SWIFT_CLASS("_TtC13Example_Swift17LogViewController") -@interface LogViewController : UIViewController -@property (nonatomic, weak) IBOutlet UISegmentedControl * _Null_unspecified segmentedControl; -@property (nonatomic, weak) IBOutlet UIBarButtonItem * _Null_unspecified deleteItem; -@property (nonatomic, weak) IBOutlet UITableView * _Null_unspecified defaultTableView; -@property (nonatomic, weak) IBOutlet UISearchBar * _Null_unspecified defaultSearchBar; -@property (nonatomic, weak) IBOutlet UITableView * _Null_unspecified colorTableView; -@property (nonatomic, weak) IBOutlet UISearchBar * _Null_unspecified colorSearchBar; -- (void)viewDidLoad; -- (void)viewWillDisappear:(BOOL)animated; -- (IBAction)resetLogs:(id _Nonnull)sender; -- (IBAction)segmentedControlAction:(UISegmentedControl * _Nonnull)sender; -- (void)refreshLogs_notification; -- (nonnull instancetype)initWithNibName:(NSString * _Nullable)nibNameOrNil bundle:(NSBundle * _Nullable)nibBundleOrNil OBJC_DESIGNATED_INITIALIZER; -- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)aDecoder OBJC_DESIGNATED_INITIALIZER; -@end - -@class UIScrollView; - -@interface LogViewController (SWIFT_EXTENSION(Example_Swift)) -- (void)scrollViewDidScroll:(UIScrollView * _Nonnull)scrollView; -@end - - -@interface LogViewController (SWIFT_EXTENSION(Example_Swift)) -- (NSInteger)tableView:(UITableView * _Nonnull)tableView numberOfRowsInSection:(NSInteger)section SWIFT_WARN_UNUSED_RESULT; -- (UITableViewCell * _Nonnull)tableView:(UITableView * _Nonnull)tableView cellForRowAtIndexPath:(NSIndexPath * _Nonnull)indexPath SWIFT_WARN_UNUSED_RESULT; -@end - - -@interface LogViewController (SWIFT_EXTENSION(Example_Swift)) -- (void)searchBarSearchButtonClicked:(UISearchBar * _Nonnull)searchBar; -- (void)searchBar:(UISearchBar * _Nonnull)searchBar textDidChange:(NSString * _Nonnull)searchText; -@end - - -@interface LogViewController (SWIFT_EXTENSION(Example_Swift)) -- (CGFloat)tableView:(UITableView * _Nonnull)tableView heightForRowAtIndexPath:(NSIndexPath * _Nonnull)indexPath SWIFT_WARN_UNUSED_RESULT; -- (void)tableView:(UITableView * _Nonnull)tableView didSelectRowAtIndexPath:(NSIndexPath * _Nonnull)indexPath; -- (UISwipeActionsConfiguration * _Nullable)tableView:(UITableView * _Nonnull)tableView leadingSwipeActionsConfigurationForRowAtIndexPath:(NSIndexPath * _Nonnull)indexPath SWIFT_WARN_UNUSED_RESULT SWIFT_AVAILABILITY(ios,introduced=11.0); -- (UISwipeActionsConfiguration * _Nullable)tableView:(UITableView * _Nonnull)tableView trailingSwipeActionsConfigurationForRowAtIndexPath:(NSIndexPath * _Nonnull)indexPath SWIFT_WARN_UNUSED_RESULT SWIFT_AVAILABILITY(ios,introduced=11.0); -- (UITableViewCellEditingStyle)tableView:(UITableView * _Nonnull)tableView editingStyleForRowAtIndexPath:(NSIndexPath * _Nonnull)indexPath SWIFT_WARN_UNUSED_RESULT; -- (NSString * _Nullable)tableView:(UITableView * _Nonnull)tableView titleForDeleteConfirmationButtonForRowAtIndexPath:(NSIndexPath * _Nonnull)indexPath SWIFT_WARN_UNUSED_RESULT; -- (BOOL)tableView:(UITableView * _Nonnull)tableView canEditRowAtIndexPath:(NSIndexPath * _Nonnull)indexPath SWIFT_WARN_UNUSED_RESULT; -- (void)tableView:(UITableView * _Nonnull)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath * _Nonnull)indexPath; -@end - - - - - - -SWIFT_CLASS("_TtC13Example_Swift24NetworkActivityIndicator") -@interface NetworkActivityIndicator : NSObject -- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; -@end - - -SWIFT_CLASS("_TtC13Example_Swift11NetworkCell") -@interface NetworkCell : UITableViewCell -@property (nonatomic, weak) IBOutlet UIView * _Null_unspecified leftAlignLine; -@property (nonatomic, weak) IBOutlet UILabel * _Null_unspecified statusCodeLabel; -@property (nonatomic, weak) IBOutlet UILabel * _Null_unspecified methodLabel; -@property (nonatomic, weak) IBOutlet UITextView * _Null_unspecified requestTimeTextView; -@property (nonatomic, weak) IBOutlet UITextView * _Null_unspecified requestUrlTextView; -@property (nonatomic, weak) IBOutlet UILabel * _Null_unspecified imageLabel; -@property (nonatomic, weak) IBOutlet UIView * _Null_unspecified statusCodeView; -- (void)awakeFromNib; -- (nonnull instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString * _Nullable)reuseIdentifier OBJC_DESIGNATED_INITIALIZER SWIFT_AVAILABILITY(ios,introduced=3.0); -- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)aDecoder OBJC_DESIGNATED_INITIALIZER; -@end - -@class NSLayoutConstraint; - -SWIFT_CLASS("_TtC13Example_Swift17NetworkDetailCell") -@interface NetworkDetailCell : UITableViewCell -@property (nonatomic, weak) IBOutlet UILabel * _Null_unspecified titleLabel; -@property (nonatomic, weak) IBOutlet UITextView * _Null_unspecified contentTextView; -@property (nonatomic, weak) IBOutlet UIImageView * _Null_unspecified imgView; -@property (nonatomic, weak) IBOutlet UIView * _Null_unspecified titleView; -@property (nonatomic, weak) IBOutlet UIView * _Null_unspecified topLine; -@property (nonatomic, weak) IBOutlet UIView * _Null_unspecified middleLine; -@property (nonatomic, weak) IBOutlet UIView * _Null_unspecified bottomLine; -@property (nonatomic, weak) IBOutlet UIView * _Null_unspecified editView; -@property (nonatomic, weak) IBOutlet NSLayoutConstraint * _Null_unspecified titleViewBottomSpaceToMiddleLine; -- (void)awakeFromNib; -- (void)tapEditView; -- (BOOL)canPerformAction:(SEL _Nonnull)action withSender:(id _Nullable)sender SWIFT_WARN_UNUSED_RESULT; -- (void)selectAll:(id _Nullable)sender; -- (nonnull instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString * _Nullable)reuseIdentifier OBJC_DESIGNATED_INITIALIZER SWIFT_AVAILABILITY(ios,introduced=3.0); -- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)aDecoder OBJC_DESIGNATED_INITIALIZER; -@end - - -SWIFT_CLASS("_TtC13Example_Swift27NetworkDetailViewController") -@interface NetworkDetailViewController : UITableViewController -@property (nonatomic, weak) IBOutlet UIBarButtonItem * _Null_unspecified closeItem; -- (void)viewDidLoad; -- (void)viewWillAppear:(BOOL)animated; -- (void)viewWillDisappear:(BOOL)animated; -- (IBAction)close:(UIBarButtonItem * _Nonnull)sender; -- (void)motionShake_notification; -- (BOOL)canPerformAction:(SEL _Nonnull)action withSender:(id _Nullable)sender SWIFT_WARN_UNUSED_RESULT; -- (void)selectAll:(id _Nullable)sender; -- (nonnull instancetype)initWithStyle:(UITableViewStyle)style OBJC_DESIGNATED_INITIALIZER; -- (nonnull instancetype)initWithNibName:(NSString * _Nullable)nibNameOrNil bundle:(NSBundle * _Nullable)nibBundleOrNil OBJC_DESIGNATED_INITIALIZER; -- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)aDecoder OBJC_DESIGNATED_INITIALIZER; -@end - -@class MFMailComposeViewController; - -@interface NetworkDetailViewController (SWIFT_EXTENSION(Example_Swift)) -- (void)mailComposeController:(MFMailComposeViewController * _Nonnull)controller didFinishWithResult:(MFMailComposeResult)result error:(NSError * _Nullable)error; -@end - - -@interface NetworkDetailViewController (SWIFT_EXTENSION(Example_Swift)) -- (NSInteger)tableView:(UITableView * _Nonnull)tableView numberOfRowsInSection:(NSInteger)section SWIFT_WARN_UNUSED_RESULT; -- (UITableViewCell * _Nonnull)tableView:(UITableView * _Nonnull)tableView cellForRowAtIndexPath:(NSIndexPath * _Nonnull)indexPath SWIFT_WARN_UNUSED_RESULT; -@end - - -@interface NetworkDetailViewController (SWIFT_EXTENSION(Example_Swift)) -- (CGFloat)tableView:(UITableView * _Nonnull)tableView heightForRowAtIndexPath:(NSIndexPath * _Nonnull)indexPath SWIFT_WARN_UNUSED_RESULT; -- (UIView * _Nullable)tableView:(UITableView * _Nonnull)tableView viewForHeaderInSection:(NSInteger)section SWIFT_WARN_UNUSED_RESULT; -- (CGFloat)tableView:(UITableView * _Nonnull)tableView heightForHeaderInSection:(NSInteger)section SWIFT_WARN_UNUSED_RESULT; -@end - - -SWIFT_CLASS("_TtC13Example_Swift21NetworkViewController") -@interface NetworkViewController : UIViewController -@property (nonatomic, weak) IBOutlet UITableView * _Null_unspecified tableView; -@property (nonatomic, weak) IBOutlet UISearchBar * _Null_unspecified searchBar; -@property (nonatomic, weak) IBOutlet UIBarButtonItem * _Null_unspecified deleteItem; -- (void)viewDidLoad; -- (void)viewWillDisappear:(BOOL)animated; -- (IBAction)tapTrashButton:(UIBarButtonItem * _Nonnull)sender; -- (void)reloadHttp_notification:(NSNotification * _Nonnull)notification; -- (nonnull instancetype)initWithNibName:(NSString * _Nullable)nibNameOrNil bundle:(NSBundle * _Nullable)nibBundleOrNil OBJC_DESIGNATED_INITIALIZER; -- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)aDecoder OBJC_DESIGNATED_INITIALIZER; -@end - - -@interface NetworkViewController (SWIFT_EXTENSION(Example_Swift)) -- (void)scrollViewDidScroll:(UIScrollView * _Nonnull)scrollView; -@end - - -@interface NetworkViewController (SWIFT_EXTENSION(Example_Swift)) -- (NSInteger)tableView:(UITableView * _Nonnull)tableView numberOfRowsInSection:(NSInteger)section SWIFT_WARN_UNUSED_RESULT; -- (UITableViewCell * _Nonnull)tableView:(UITableView * _Nonnull)tableView cellForRowAtIndexPath:(NSIndexPath * _Nonnull)indexPath SWIFT_WARN_UNUSED_RESULT; -@end - - -@interface NetworkViewController (SWIFT_EXTENSION(Example_Swift)) -- (void)searchBarSearchButtonClicked:(UISearchBar * _Nonnull)searchBar; -- (void)searchBar:(UISearchBar * _Nonnull)searchBar textDidChange:(NSString * _Nonnull)searchText; -@end - - -@interface NetworkViewController (SWIFT_EXTENSION(Example_Swift)) -- (CGFloat)tableView:(UITableView * _Nonnull)tableView heightForRowAtIndexPath:(NSIndexPath * _Nonnull)indexPath SWIFT_WARN_UNUSED_RESULT; -- (void)tableView:(UITableView * _Nonnull)tableView didSelectRowAtIndexPath:(NSIndexPath * _Nonnull)indexPath; -- (UISwipeActionsConfiguration * _Nullable)tableView:(UITableView * _Nonnull)tableView leadingSwipeActionsConfigurationForRowAtIndexPath:(NSIndexPath * _Nonnull)indexPath SWIFT_WARN_UNUSED_RESULT SWIFT_AVAILABILITY(ios,introduced=11.0); -- (UISwipeActionsConfiguration * _Nullable)tableView:(UITableView * _Nonnull)tableView trailingSwipeActionsConfigurationForRowAtIndexPath:(NSIndexPath * _Nonnull)indexPath SWIFT_WARN_UNUSED_RESULT SWIFT_AVAILABILITY(ios,introduced=11.0); -- (UITableViewCellEditingStyle)tableView:(UITableView * _Nonnull)tableView editingStyleForRowAtIndexPath:(NSIndexPath * _Nonnull)indexPath SWIFT_WARN_UNUSED_RESULT; -- (NSString * _Nullable)tableView:(UITableView * _Nonnull)tableView titleForDeleteConfirmationButtonForRowAtIndexPath:(NSIndexPath * _Nonnull)indexPath SWIFT_WARN_UNUSED_RESULT; -- (BOOL)tableView:(UITableView * _Nonnull)tableView canEditRowAtIndexPath:(NSIndexPath * _Nonnull)indexPath SWIFT_WARN_UNUSED_RESULT; -- (void)tableView:(UITableView * _Nonnull)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath * _Nonnull)indexPath; -@end - - -/// Responsible for handling all delegate callbacks for the underlying session. -SWIFT_CLASS("_TtC13Example_Swift15SessionDelegate") -@interface SessionDelegate : NSObject -/// Initializes the SessionDelegate instance. -/// -/// returns: -/// The new SessionDelegate instance. -- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; -/// Returns a Bool indicating whether the SessionDelegate implements or inherits a method that can respond -/// to a specified message. -/// \param selector A selector that identifies a message. -/// -/// -/// returns: -/// true if the receiver implements or inherits a method that can respond to selector, otherwise false. -- (BOOL)respondsToSelector:(SEL _Nonnull)selector SWIFT_WARN_UNUSED_RESULT; -@end - - -@interface SessionDelegate (SWIFT_EXTENSION(Example_Swift)) -/// Tells the delegate that the session has been invalidated. -/// \param session The session object that was invalidated. -/// -/// \param error The error that caused invalidation, or nil if the invalidation was explicit. -/// -- (void)URLSession:(NSURLSession * _Nonnull)session didBecomeInvalidWithError:(NSError * _Nullable)error; -/// Requests credentials from the delegate in response to a session-level authentication request from the -/// remote server. -/// \param session The session containing the task that requested authentication. -/// -/// \param challenge An object that contains the request for authentication. -/// -/// \param completionHandler A handler that your delegate method must call providing the disposition -/// and credential. -/// -- (void)URLSession:(NSURLSession * _Nonnull)session didReceiveChallenge:(NSURLAuthenticationChallenge * _Nonnull)challenge completionHandler:(void (^ _Nonnull)(enum NSURLSessionAuthChallengeDisposition, NSURLCredential * _Nullable))completionHandler; -/// Tells the delegate that all messages enqueued for a session have been delivered. -/// \param session The session that no longer has any outstanding requests. -/// -- (void)URLSessionDidFinishEventsForBackgroundURLSession:(NSURLSession * _Nonnull)session; -@end - - -@interface SessionDelegate (SWIFT_EXTENSION(Example_Swift)) -/// Tells the delegate that a download task has finished downloading. -/// \param session The session containing the download task that finished. -/// -/// \param downloadTask The download task that finished. -/// -/// \param location A file URL for the temporary file. Because the file is temporary, you must either -/// open the file for reading or move it to a permanent location in your app’s sandbox -/// container directory before returning from this delegate method. -/// -- (void)URLSession:(NSURLSession * _Nonnull)session downloadTask:(NSURLSessionDownloadTask * _Nonnull)downloadTask didFinishDownloadingToURL:(NSURL * _Nonnull)location; -/// Periodically informs the delegate about the download’s progress. -/// \param session The session containing the download task. -/// -/// \param downloadTask The download task. -/// -/// \param bytesWritten The number of bytes transferred since the last time this delegate -/// method was called. -/// -/// \param totalBytesWritten The total number of bytes transferred so far. -/// -/// \param totalBytesExpectedToWrite The expected length of the file, as provided by the Content-Length -/// header. If this header was not provided, the value is -/// NSURLSessionTransferSizeUnknown. -/// -- (void)URLSession:(NSURLSession * _Nonnull)session downloadTask:(NSURLSessionDownloadTask * _Nonnull)downloadTask didWriteData:(int64_t)bytesWritten totalBytesWritten:(int64_t)totalBytesWritten totalBytesExpectedToWrite:(int64_t)totalBytesExpectedToWrite; -/// Tells the delegate that the download task has resumed downloading. -/// \param session The session containing the download task that finished. -/// -/// \param downloadTask The download task that resumed. See explanation in the discussion. -/// -/// \param fileOffset If the file’s cache policy or last modified date prevents reuse of the -/// existing content, then this value is zero. Otherwise, this value is an -/// integer representing the number of bytes on disk that do not need to be -/// retrieved again. -/// -/// \param expectedTotalBytes The expected length of the file, as provided by the Content-Length header. -/// If this header was not provided, the value is NSURLSessionTransferSizeUnknown. -/// -- (void)URLSession:(NSURLSession * _Nonnull)session downloadTask:(NSURLSessionDownloadTask * _Nonnull)downloadTask didResumeAtOffset:(int64_t)fileOffset expectedTotalBytes:(int64_t)expectedTotalBytes; -@end - - -@interface SessionDelegate (SWIFT_EXTENSION(Example_Swift)) -/// Tells the delegate that the data task received the initial reply (headers) from the server. -/// \param session The session containing the data task that received an initial reply. -/// -/// \param dataTask The data task that received an initial reply. -/// -/// \param response A URL response object populated with headers. -/// -/// \param completionHandler A completion handler that your code calls to continue the transfer, passing a -/// constant to indicate whether the transfer should continue as a data task or -/// should become a download task. -/// -- (void)URLSession:(NSURLSession * _Nonnull)session dataTask:(NSURLSessionDataTask * _Nonnull)dataTask didReceiveResponse:(NSURLResponse * _Nonnull)response completionHandler:(void (^ _Nonnull)(enum NSURLSessionResponseDisposition))completionHandler; -/// Tells the delegate that the data task was changed to a download task. -/// \param session The session containing the task that was replaced by a download task. -/// -/// \param dataTask The data task that was replaced by a download task. -/// -/// \param downloadTask The new download task that replaced the data task. -/// -- (void)URLSession:(NSURLSession * _Nonnull)session dataTask:(NSURLSessionDataTask * _Nonnull)dataTask didBecomeDownloadTask:(NSURLSessionDownloadTask * _Nonnull)downloadTask; -/// Tells the delegate that the data task has received some of the expected data. -/// \param session The session containing the data task that provided data. -/// -/// \param dataTask The data task that provided data. -/// -/// \param data A data object containing the transferred data. -/// -- (void)URLSession:(NSURLSession * _Nonnull)session dataTask:(NSURLSessionDataTask * _Nonnull)dataTask didReceiveData:(NSData * _Nonnull)data; -/// Asks the delegate whether the data (or upload) task should store the response in the cache. -/// \param session The session containing the data (or upload) task. -/// -/// \param dataTask The data (or upload) task. -/// -/// \param proposedResponse The default caching behavior. This behavior is determined based on the current -/// caching policy and the values of certain received headers, such as the Pragma -/// and Cache-Control headers. -/// -/// \param completionHandler A block that your handler must call, providing either the original proposed -/// response, a modified version of that response, or NULL to prevent caching the -/// response. If your delegate implements this method, it must call this completion -/// handler; otherwise, your app leaks memory. -/// -- (void)URLSession:(NSURLSession * _Nonnull)session dataTask:(NSURLSessionDataTask * _Nonnull)dataTask willCacheResponse:(NSCachedURLResponse * _Nonnull)proposedResponse completionHandler:(void (^ _Nonnull)(NSCachedURLResponse * _Nullable))completionHandler; -@end - -@class NSURLSessionStreamTask; -@class NSOutputStream; - -SWIFT_AVAILABILITY(tvos,introduced=9.0) SWIFT_AVAILABILITY(macos,introduced=10.11) SWIFT_AVAILABILITY(ios,introduced=9.0) -@interface SessionDelegate (SWIFT_EXTENSION(Example_Swift)) -/// Tells the delegate that the read side of the connection has been closed. -/// \param session The session. -/// -/// \param streamTask The stream task. -/// -- (void)URLSession:(NSURLSession * _Nonnull)session readClosedForStreamTask:(NSURLSessionStreamTask * _Nonnull)streamTask; -/// Tells the delegate that the write side of the connection has been closed. -/// \param session The session. -/// -/// \param streamTask The stream task. -/// -- (void)URLSession:(NSURLSession * _Nonnull)session writeClosedForStreamTask:(NSURLSessionStreamTask * _Nonnull)streamTask; -/// Tells the delegate that the system has determined that a better route to the host is available. -/// \param session The session. -/// -/// \param streamTask The stream task. -/// -- (void)URLSession:(NSURLSession * _Nonnull)session betterRouteDiscoveredForStreamTask:(NSURLSessionStreamTask * _Nonnull)streamTask; -/// Tells the delegate that the stream task has been completed and provides the unopened stream objects. -/// \param session The session. -/// -/// \param streamTask The stream task. -/// -/// \param inputStream The new input stream. -/// -/// \param outputStream The new output stream. -/// -- (void)URLSession:(NSURLSession * _Nonnull)session streamTask:(NSURLSessionStreamTask * _Nonnull)streamTask didBecomeInputStream:(NSInputStream * _Nonnull)inputStream outputStream:(NSOutputStream * _Nonnull)outputStream; -@end - -@class NSURLSessionTaskMetrics; - -@interface SessionDelegate (SWIFT_EXTENSION(Example_Swift)) -/// Tells the delegate that the remote server requested an HTTP redirect. -/// \param session The session containing the task whose request resulted in a redirect. -/// -/// \param task The task whose request resulted in a redirect. -/// -/// \param response An object containing the server’s response to the original request. -/// -/// \param request A URL request object filled out with the new location. -/// -/// \param completionHandler A closure that your handler should call with either the value of the request -/// parameter, a modified URL request object, or NULL to refuse the redirect and -/// return the body of the redirect response. -/// -- (void)URLSession:(NSURLSession * _Nonnull)session task:(NSURLSessionTask * _Nonnull)task willPerformHTTPRedirection:(NSHTTPURLResponse * _Nonnull)response newRequest:(NSURLRequest * _Nonnull)request completionHandler:(void (^ _Nonnull)(NSURLRequest * _Nullable))completionHandler; -/// Requests credentials from the delegate in response to an authentication request from the remote server. -/// \param session The session containing the task whose request requires authentication. -/// -/// \param task The task whose request requires authentication. -/// -/// \param challenge An object that contains the request for authentication. -/// -/// \param completionHandler A handler that your delegate method must call providing the disposition -/// and credential. -/// -- (void)URLSession:(NSURLSession * _Nonnull)session task:(NSURLSessionTask * _Nonnull)task didReceiveChallenge:(NSURLAuthenticationChallenge * _Nonnull)challenge completionHandler:(void (^ _Nonnull)(enum NSURLSessionAuthChallengeDisposition, NSURLCredential * _Nullable))completionHandler; -/// Tells the delegate when a task requires a new request body stream to send to the remote server. -/// \param session The session containing the task that needs a new body stream. -/// -/// \param task The task that needs a new body stream. -/// -/// \param completionHandler A completion handler that your delegate method should call with the new body stream. -/// -- (void)URLSession:(NSURLSession * _Nonnull)session task:(NSURLSessionTask * _Nonnull)task needNewBodyStream:(void (^ _Nonnull)(NSInputStream * _Nullable))completionHandler; -/// Periodically informs the delegate of the progress of sending body content to the server. -/// \param session The session containing the data task. -/// -/// \param task The data task. -/// -/// \param bytesSent The number of bytes sent since the last time this delegate method was called. -/// -/// \param totalBytesSent The total number of bytes sent so far. -/// -/// \param totalBytesExpectedToSend The expected length of the body data. -/// -- (void)URLSession:(NSURLSession * _Nonnull)session task:(NSURLSessionTask * _Nonnull)task didSendBodyData:(int64_t)bytesSent totalBytesSent:(int64_t)totalBytesSent totalBytesExpectedToSend:(int64_t)totalBytesExpectedToSend; -/// Tells the delegate that the session finished collecting metrics for the task. -/// \param session The session collecting the metrics. -/// -/// \param task The task whose metrics have been collected. -/// -/// \param metrics The collected metrics. -/// -- (void)URLSession:(NSURLSession * _Nonnull)session task:(NSURLSessionTask * _Nonnull)task didFinishCollectingMetrics:(NSURLSessionTaskMetrics * _Nonnull)metrics SWIFT_AVAILABILITY(tvos,introduced=10.0) SWIFT_AVAILABILITY(macos,introduced=10.12) SWIFT_AVAILABILITY(ios,introduced=10.0); -/// Tells the delegate that the task finished transferring data. -/// \param session The session containing the task whose request finished transferring data. -/// -/// \param task The task whose request finished transferring data. -/// -/// \param error If an error occurred, an error object indicating how the transfer failed, otherwise nil. -/// -- (void)URLSession:(NSURLSession * _Nonnull)session task:(NSURLSessionTask * _Nonnull)task didCompleteWithError:(NSError * _Nullable)error; -@end - - - - - - - - - -@interface UIWindow (SWIFT_EXTENSION(Example_Swift)) -- (void)motionEnded:(UIEventSubtype)motion withEvent:(UIEvent * _Nullable)event; -@end - - - - -/// This is how to upload files in SwiftHTTP. The upload object represents a file to upload by either a data blob or a url (which it reads off disk). -SWIFT_CLASS("_TtC13Example_Swift6Upload") -@interface Upload : NSObject -/// Standard NSCoder support -- (void)encodeWithCoder:(NSCoder * _Nonnull)aCoder; -/// Required for NSObject support (because of NSCoder, it would be a struct otherwise!) -- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; -- (nonnull instancetype)initWithCoder:(NSCoder * _Nonnull)aDecoder; -@end - - - - -SWIFT_CLASS("_TtC13Example_Swift18UploadTaskDelegate") -@interface UploadTaskDelegate : DataTaskDelegate -@end - - -SWIFT_CLASS("_TtC13Example_Swift14ViewController") -@interface ViewController : UIViewController -- (void)viewDidLoad; -- (nonnull instancetype)initWithNibName:(NSString * _Nullable)nibNameOrNil bundle:(NSBundle * _Nullable)nibBundleOrNil OBJC_DESIGNATED_INITIALIZER; -- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)aDecoder OBJC_DESIGNATED_INITIALIZER; -@end - - -SWIFT_CLASS("_TtC13Example_Swift12WindowHelper") -@interface WindowHelper : NSObject -- (nonnull instancetype)init SWIFT_UNAVAILABLE; -+ (nonnull instancetype)new SWIFT_DEPRECATED_MSG("-init is unavailable"); -@end - - - -#if __has_attribute(external_source_symbol) -# pragma clang attribute pop -#endif -#pragma clang diagnostic pop -