#if (defined(USE_UIKIT_PUBLIC_HEADERS) && USE_UIKIT_PUBLIC_HEADERS) || !__has_include() // // NSItemProvider+UIKitAdditions.h // UIKit // // Copyright © 2017-2018 Apple Inc. All rights reserved. // #import #import #import NS_HEADER_AUDIT_BEGIN(nullability, sendability) UIKIT_SWIFT_FORWARD_DECLARE(@class NSItemProvider) typedef NS_ENUM(NSInteger, UIPreferredPresentationStyle) { UIPreferredPresentationStyleUnspecified = 0, UIPreferredPresentationStyleInline, UIPreferredPresentationStyleAttachment, }; @interface NSItemProvider (UIKitAdditions) @property (nonatomic, copy, nullable) NSData *teamData API_AVAILABLE(ios(11.0)) API_UNAVAILABLE(watchos, tvos); // Estimated presentation size, in points. CGSizeZero value indicates this information is not available. @property (nonatomic) CGSize preferredPresentationSize API_AVAILABLE(ios(11.0)) API_UNAVAILABLE(watchos, tvos); @property (nonatomic) UIPreferredPresentationStyle preferredPresentationStyle API_AVAILABLE(ios(11.0)) API_UNAVAILABLE(watchos, tvos); @end API_AVAILABLE(ios(11.0)) API_UNAVAILABLE(watchos, tvos) NS_SWIFT_UI_ACTOR @protocol UIItemProviderPresentationSizeProviding // Implement this on an object which conforms to the NSItemProviderWriting protocol. // When the object is registered to NSItemProvider, this property will be used to automatically set // the `preferredPresentationSize` property on NSItemProvider. // Return CGSizeZero to indicate that this information is not available. @property (nonatomic, readonly) CGSize preferredPresentationSizeForItemProvider; @end NS_HEADER_AUDIT_END(nullability, sendability) #else #import #endif