#if USE(APPLE_INTERNAL_SDK)
#import <UIKit/UIApplicationSceneConstants.h>
#import <UIKit/UIApplication_Private.h>
#import <UIKit/UIInterface_Private.h>
#import <UIKit/UIScreen_Private.h>
#import <UIKit/UIViewController_Private.h>
#if ENABLE(DATA_INTERACTION)
#import <UIKit/NSAttributedString+UIItemProvider.h>
#import <UIKit/NSString+UIItemProvider.h>
#import <UIKit/NSURL+UIItemProvider.h>
#import <UIKit/UIImage+UIItemProvider.h>
#import <UIKit/UIItemProvider_Private.h>
#endif
@interface UIApplication ()
+ (UIApplicationSceneClassicMode)_classicMode;
@end
#else
#import <UIKit/UIKit.h>
#if ENABLE(DRAG_SUPPORT)
#import <UIKit/NSItemProvider+UIKitAdditions.h>
#endif
NS_ASSUME_NONNULL_BEGIN
typedef NS_ENUM(NSInteger, UIApplicationSceneClassicMode) {
UIApplicationSceneClassicModeOriginalPad = 4,
};
@interface UIApplication ()
- (BOOL)_isClassic;
+ (UIApplicationSceneClassicMode)_classicMode;
@end
@interface UIColor ()
+ (UIColor *)systemBlueColor;
+ (UIColor *)systemGrayColor;
+ (UIColor *)systemGreenColor;
+ (UIColor *)systemOrangeColor;
+ (UIColor *)systemPinkColor;
+ (UIColor *)systemRedColor;
+ (UIColor *)systemYellowColor;
@end
@interface UIScreen ()
@property (nonatomic, readonly) CGRect _referenceBounds;
@end
@interface UIViewController ()
+ (UIViewController *)viewControllerForView:(UIView *)view;
@end
NS_ASSUME_NONNULL_END
#if __IPHONE_OS_VERSION_MIN_REQUIRED >= 110000
@interface NSURL ()
@property (nonatomic, copy, nullable, setter=_setTitle:) NSString *_title;
@end
#endif
#if ENABLE(DATA_INTERACTION)
NS_ASSUME_NONNULL_BEGIN
@interface UIItemProvider : NSItemProvider
@end
#define UIItemProviderRepresentationOptionsVisibilityAll NSItemProviderRepresentationVisibilityAll
@protocol UIItemProviderReading <NSItemProviderReading>
@required
- (nullable instancetype)initWithItemProviderData:(NSData *)data typeIdentifier:(NSString *)typeIdentifier error:(NSError **)outError;
@end
@protocol UIItemProviderWriting <NSItemProviderWriting>
@required
- (NSProgress * _Nullable)loadDataWithTypeIdentifier:(NSString *)typeIdentifier forItemProviderCompletionHandler:(void (^)(NSData * _Nullable, NSError * _Nullable))completionHandler;
@end
@interface NSAttributedString () <UIItemProviderReading, UIItemProviderWriting>
@end
@interface NSString () <UIItemProviderReading, UIItemProviderWriting>
@end
@interface NSURL () <UIItemProviderReading, UIItemProviderWriting>
@end
@interface UIImage () <UIItemProviderReading, UIItemProviderWriting>
@end
NS_ASSUME_NONNULL_END
#endif
#endif