#[repr(transparent)]pub struct UIWritingToolsCoordinatorTextReplacementReason(pub NSInteger);
UIWritingToolsCoordinator
only.Expand description
Options that indicate whether Writing Tools is animating changes to your view’s text.
During an operation, Writing Tools delivers replacement text to the
delegate of the active UIWritingToolsCoordinator
object. Depending
on the configured experience for your view, it delivers these changes
as either interactive or noninteractive replacements. For interactive
replacements, Writing Tools animates the change automatically and provides
you with the information you need to perform any related animations.
See also Apple’s documentation
Tuple Fields§
§0: NSInteger
Implementations§
Source§impl UIWritingToolsCoordinatorTextReplacementReason
impl UIWritingToolsCoordinatorTextReplacementReason
Sourcepub const Interactive: Self
pub const Interactive: Self
An option to animate the replacement of text in your view.
When Writing Tools requests an interactive change in your delegate’s
UIWritingToolsCoordinator/Delegate/writingToolsCoordinator(_:replaceRange:inContext:proposedText:reason:animationParameters:completion:)
method, it passes a valid set of animation parameters to that method.
Update your view’s text storage and use the provided UIWritingToolsCoordinator/AnimationParameters
type to create any view-specific animations you need to support the
animated replacement of the text.
Sourcepub const Noninteractive: Self
pub const Noninteractive: Self
An option to replace the text in your view without animating the change.
When Writing Tools requests a noninteractive change in your delegate’s
UIWritingToolsCoordinator/Delegate/writingToolsCoordinator(_:replaceRange:inContext:proposedText:reason:animationParameters:completion:)
method, update your view’s text storage without animating the change.
Trait Implementations§
Source§impl Clone for UIWritingToolsCoordinatorTextReplacementReason
impl Clone for UIWritingToolsCoordinatorTextReplacementReason
Source§fn clone(&self) -> UIWritingToolsCoordinatorTextReplacementReason
fn clone(&self) -> UIWritingToolsCoordinatorTextReplacementReason
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Ord for UIWritingToolsCoordinatorTextReplacementReason
impl Ord for UIWritingToolsCoordinatorTextReplacementReason
Source§fn cmp(
&self,
other: &UIWritingToolsCoordinatorTextReplacementReason,
) -> Ordering
fn cmp( &self, other: &UIWritingToolsCoordinatorTextReplacementReason, ) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for UIWritingToolsCoordinatorTextReplacementReason
impl PartialEq for UIWritingToolsCoordinatorTextReplacementReason
Source§fn eq(&self, other: &UIWritingToolsCoordinatorTextReplacementReason) -> bool
fn eq(&self, other: &UIWritingToolsCoordinatorTextReplacementReason) -> bool
self
and other
values to be equal, and is used by ==
.