#[repr(transparent)]pub struct UIWritingToolsCoordinatorContextScope(pub NSInteger);
UIWritingToolsCoordinator
only.Expand description
Options that indicate how much of your content Writing Tools requested.
At the start of any Writing Tools interaction, you provide the text for
the system to evaluate from your UIWritingToolsCoordinator/Delegate
object. The request for your content comes with a scope constant that
indicates how much of your view’s text to provide.
See also Apple’s documentation
Tuple Fields§
§0: NSInteger
Implementations§
Source§impl UIWritingToolsCoordinatorContextScope
impl UIWritingToolsCoordinatorContextScope
Sourcepub const UserSelection: Self
pub const UserSelection: Self
An option to provide only the view’s currently selected text.
With this option, include the selected text in your context object, along with some additional text before and after the selection. When performing changes inline with your view’s content, Writing Tools applies animations only to the selected text.
Sourcepub const FullDocument: Self
pub const FullDocument: Self
An option to provide all of your view’s text.
With this option, include all of the text your view manages. If your view has multiple text storage objects, create a separate context object for each one.
Sourcepub const VisibleArea: Self
pub const VisibleArea: Self
An option to provide only the text in the currently visible portion of your view.
With this option, include only the currently visible text, along with some additional text before and after the visible text.
Trait Implementations§
Source§impl Clone for UIWritingToolsCoordinatorContextScope
impl Clone for UIWritingToolsCoordinatorContextScope
Source§fn clone(&self) -> UIWritingToolsCoordinatorContextScope
fn clone(&self) -> UIWritingToolsCoordinatorContextScope
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Ord for UIWritingToolsCoordinatorContextScope
impl Ord for UIWritingToolsCoordinatorContextScope
Source§fn cmp(&self, other: &UIWritingToolsCoordinatorContextScope) -> Ordering
fn cmp(&self, other: &UIWritingToolsCoordinatorContextScope) -> 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 UIWritingToolsCoordinatorContextScope
impl PartialEq for UIWritingToolsCoordinatorContextScope
Source§fn eq(&self, other: &UIWritingToolsCoordinatorContextScope) -> bool
fn eq(&self, other: &UIWritingToolsCoordinatorContextScope) -> bool
self
and other
values to be equal, and is used by ==
.