#if (defined(USE_UIKIT_PUBLIC_HEADERS) && USE_UIKIT_PUBLIC_HEADERS) || !__has_include() // // UITextInteraction.h // UIKit // // Copyright © 2018 Apple Inc. All rights reserved. // #import #import #import NS_HEADER_AUDIT_BEGIN(nullability, sendability) @class UITextInteraction; typedef NS_ENUM (NSInteger, UITextInteractionMode) { UITextInteractionModeEditable, UITextInteractionModeNonEditable, }; NS_SWIFT_UI_ACTOR @protocol UITextInteractionDelegate @optional - (BOOL)interactionShouldBegin:(UITextInteraction *)interaction atPoint:(CGPoint)point; - (void)interactionWillBegin:(UITextInteraction *)interaction; - (void)interactionDidEnd:(UITextInteraction *)interaction; @end UIKIT_EXTERN API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(tvos, watchos) NS_SWIFT_UI_ACTOR @interface UITextInteraction : NSObject @property (nonatomic, weak) id delegate; @property (nonatomic, weak) UIResponder *textInput; @property (nonatomic, readonly) UITextInteractionMode textInteractionMode; @property (nonatomic, readonly) NSArray *gesturesForFailureRequirements; + (instancetype)textInteractionForMode:(UITextInteractionMode)mode; @end NS_HEADER_AUDIT_END(nullability, sendability) #else #import #endif