#[repr(transparent)]pub struct UIWritingToolsCoordinatorTextAnimation(pub NSInteger);
UIWritingToolsCoordinator
only.Expand description
The types of animations that Writing Tools performs during an interactive update of your view.
Use the UIWritingToolsCoordinator/TextAnimation
constants to determine
the type of animation that is occurring. During an interactive change to
your view, Writing Tools creates animations to provide feedback about what’s
happening. During the setup for each animation, Writing Tools reports the
type of animation to the coordinator’s delegate, so that you can perform
additional actions related to that animation. For example, during an insertion
animation, you might animate changes to other views in your interface.
See also Apple’s documentation
Tuple Fields§
§0: NSInteger
Implementations§
Source§impl UIWritingToolsCoordinatorTextAnimation
impl UIWritingToolsCoordinatorTextAnimation
Sourcepub const Anticipate: Self
pub const Anticipate: Self
The animation that Writing Tools performs when waiting to receive results from the large language model.
This type of animation applies a visual effect to the text that Writing Tools is evaluating. When preparing for this animation, hide the text that Writing Tools is about to evaluate. In the same space where that text appears, Writing Tools displays a preview image that you provide and animates changes to that image.
Sourcepub const Remove: Self
pub const Remove: Self
The animation that Writing Tools performs when removing text from your view.
This type of animation shows the removal of text from your view. When preparing for this animation, hide the text in the provided range if you haven’t already. If you support animating the reflow of your view’s text, you can also prepare any other animations you need. Writing Tools uses a preview object you provide to animate the removal of the text.
Sourcepub const Insert: Self
pub const Insert: Self
The animation that Writing Tools performs when inserting text into your view.
This type of animation shows the insertion of text to your view. When preparing for this animation, hide the text in the provided range if you haven’t already. If you support animating the reflow of your view’s text, you can also prepare any other animations you need. Writing Tools uses a preview object you provide to animate the insertion of the text.
Source§impl UIWritingToolsCoordinatorTextAnimation
impl UIWritingToolsCoordinatorTextAnimation
pub unsafe fn debug_description( self: UIWritingToolsCoordinatorTextAnimation, ) -> Retained<NSString>
Trait Implementations§
Source§impl Clone for UIWritingToolsCoordinatorTextAnimation
impl Clone for UIWritingToolsCoordinatorTextAnimation
Source§fn clone(&self) -> UIWritingToolsCoordinatorTextAnimation
fn clone(&self) -> UIWritingToolsCoordinatorTextAnimation
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Ord for UIWritingToolsCoordinatorTextAnimation
impl Ord for UIWritingToolsCoordinatorTextAnimation
Source§fn cmp(&self, other: &UIWritingToolsCoordinatorTextAnimation) -> Ordering
fn cmp(&self, other: &UIWritingToolsCoordinatorTextAnimation) -> 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 UIWritingToolsCoordinatorTextAnimation
impl PartialEq for UIWritingToolsCoordinatorTextAnimation
Source§fn eq(&self, other: &UIWritingToolsCoordinatorTextAnimation) -> bool
fn eq(&self, other: &UIWritingToolsCoordinatorTextAnimation) -> bool
self
and other
values to be equal, and is used by ==
.