#if (defined(USE_UIKIT_PUBLIC_HEADERS) && USE_UIKIT_PUBLIC_HEADERS) || !__has_include() // // UIDragPreview.h // UIKit // // Copyright © 2017-2018 Apple Inc. All rights reserved. // #import #import #import NS_HEADER_AUDIT_BEGIN(nullability, sendability) @class UIDragPreviewParameters, UIView; UIKIT_EXTERN API_AVAILABLE(ios(11.0)) API_UNAVAILABLE(watchos, tvos) NS_SWIFT_UI_ACTOR @interface UIDragPreview : NSObject /* UIDragPreview is a preview used after a drag has started, * when no lift, drop, or cancel animation is running. * * A UIDragItem's `previewProvider` may be set to a block that * creates and returns a UIDragPreview. * * The preview will show a static snapshot of the provided view. Subsequent changes * to the view will not appear. The UIDragPreview will not change or move the view. */ /* Create a preview based on a view and parameters. * Note: it doesn't matter whether this view is in a window or not. */ - (instancetype)initWithView:(UIView *)view parameters:(UIDragPreviewParameters *)parameters NS_DESIGNATED_INITIALIZER; /* Use the default parameters. */ - (instancetype)initWithView:(UIView *)view; - (instancetype)init NS_UNAVAILABLE; + (instancetype)new NS_UNAVAILABLE; @property (nonatomic, readonly) UIView *view; @property (nonatomic, readonly, copy) UIDragPreviewParameters *parameters; @end NS_HEADER_AUDIT_END(nullability, sendability) #else #import #endif