#if (defined(USE_UIKIT_PUBLIC_HEADERS) && USE_UIKIT_PUBLIC_HEADERS) || !__has_include() // // UIPasteControl.h // UIKit // // Copyright © 2022 Apple Inc. All rights reserved. // #import #import #import #import NS_HEADER_AUDIT_BEGIN(nullability, sendability) @class NSCoder; @protocol UIPasteConfigurationSupporting; typedef NS_ENUM(NSUInteger, UIPasteControlDisplayMode) { UIPasteControlDisplayModeIconAndLabel, UIPasteControlDisplayModeIconOnly, UIPasteControlDisplayModeLabelOnly } API_AVAILABLE(ios(16.0)) NS_SWIFT_NAME(UIPasteControl.DisplayMode); UIKIT_EXTERN API_AVAILABLE(ios(16.0)) API_UNAVAILABLE(tvos, watchos) NS_SWIFT_NAME(UIPasteControl.Configuration) NS_SWIFT_UI_ACTOR @interface UIPasteControlConfiguration : NSObject @property (nonatomic, assign) UIPasteControlDisplayMode displayMode; @property (nonatomic, assign) UIButtonConfigurationCornerStyle cornerStyle NS_REFINED_FOR_SWIFT; @property (nonatomic, assign) CGFloat cornerRadius; @property (nonatomic, nullable, strong) UIColor *baseForegroundColor; @property (nonatomic, nullable, strong) UIColor *baseBackgroundColor; @end UIKIT_EXTERN API_AVAILABLE(ios(16.0)) API_UNAVAILABLE(tvos, watchos) NS_SWIFT_UI_ACTOR @interface UIPasteControl : UIControl @property (nonatomic, readonly) UIPasteControlConfiguration *configuration; @property (nonatomic, nullable, weak) id target; - (instancetype)initWithConfiguration:(UIPasteControlConfiguration *)configuration NS_DESIGNATED_INITIALIZER; - (nullable instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER; - (instancetype)initWithFrame:(CGRect)frame NS_DESIGNATED_INITIALIZER; @end NS_HEADER_AUDIT_END(nullability, sendability) #else #import #endif