One Logo Pool Ball
UIKit · IOS API REFERENCE

NSTextSelectionNavigation

class · iOS 15.0+ · SDK 27.1

class NSTextSelectionNavigation

Members (13)

method · iOS 15.0+

deletionRanges

TypeScript
deletionRanges(textSelection: NSTextSelection, direction: NSTextSelectionNavigation_Direction, destination: NSTextSelectionNavigation_Destination, allowsDecomposition: boolean): Array<NSTextRange>
Swift declaration
func deletionRanges(for textSelection: NSTextSelection, direction: NSTextSelectionNavigation.Direction, destination: NSTextSelectionNavigation.Destination, allowsDecomposition: Bool) -> [NSTextRange]
method · iOS 15.0+

destinationSelection

TypeScript
destinationSelection(textSelection: NSTextSelection, direction: NSTextSelectionNavigation_Direction, destination: NSTextSelectionNavigation_Destination, extending: boolean, confined: boolean): (NSTextSelection) | null
Swift declaration
func destinationSelection(for textSelection: NSTextSelection, direction: NSTextSelectionNavigation.Direction, destination: NSTextSelectionNavigation.Destination, extending: Bool, confined: Bool) -> NSTextSelection?
method · iOS 15.0+

flushLayoutCache

TypeScript
flushLayoutCache(): void
Swift declaration
func flushLayoutCache()
init · iOS 15.0+

init

TypeScript
static init(dataSource: SDKHandle): NSTextSelectionNavigation
Swift declaration
init(dataSource: any NSTextSelectionDataSource)
method · iOS 15.0+

resolvedInsertionLocation

TypeScript
resolvedInsertionLocation(textSelection: NSTextSelection, writingDirection: NSTextSelectionNavigation_WritingDirection): (SDKHandle) | null
Swift declaration
func resolvedInsertionLocation(for textSelection: NSTextSelection, writingDirection: NSTextSelectionNavigation.WritingDirection) -> (any NSTextLocation)?
method · iOS 15.0+

textSelection

TypeScript
textSelectionForEnclosingInContainerAt(selectionGranularity: NSTextSelection_Granularity, point: { x: number; y: number }, location: SDKHandle): (NSTextSelection) | null
Swift declaration
func textSelection(for selectionGranularity: NSTextSelection.Granularity, enclosing point: CGPoint, inContainerAt location: any NSTextLocation) -> NSTextSelection?
method · iOS 15.0+

textSelection

TypeScript
textSelectionForEnclosing(selectionGranularity: NSTextSelection_Granularity, textSelection: NSTextSelection): NSTextSelection
Swift declaration
func textSelection(for selectionGranularity: NSTextSelection.Granularity, enclosing textSelection: NSTextSelection) -> NSTextSelection
method · iOS 15.0+

textSelections

TypeScript
textSelections(point: { x: number; y: number }, containerLocation: SDKHandle, anchors: Array<NSTextSelection>, modifiers: NSTextSelectionNavigation_Modifier, selecting: boolean, bounds: { x: number; y: number; width: number; height: number }): Array<NSTextSelection>
Swift declaration
func textSelections(interactingAt point: CGPoint, inContainerAt containerLocation: any NSTextLocation, anchors: [NSTextSelection], modifiers: NSTextSelectionNavigation.Modifier, selecting: Bool, bounds: CGRect) -> [NSTextSelection]
get · iOS 15.0+

allowsNonContiguousRanges

TypeScript
get allowsNonContiguousRanges(): boolean
Swift declaration
var allowsNonContiguousRanges: Bool { get set }
set · iOS 15.0+

allowsNonContiguousRanges

TypeScript
set allowsNonContiguousRanges(value: boolean)
Swift declaration
var allowsNonContiguousRanges: Bool { get set }
get · iOS 15.0+

rotatesCoordinateSystemForLayoutOrientation

TypeScript
get rotatesCoordinateSystemForLayoutOrientation(): boolean
Swift declaration
var rotatesCoordinateSystemForLayoutOrientation: Bool { get set }
set · iOS 15.0+

rotatesCoordinateSystemForLayoutOrientation

TypeScript
set rotatesCoordinateSystemForLayoutOrientation(value: boolean)
Swift declaration
var rotatesCoordinateSystemForLayoutOrientation: Bool { get set }
get · iOS 15.0+

textSelectionDataSource

TypeScript
get textSelectionDataSource(): (SDKHandle) | null
Swift declaration
weak var textSelectionDataSource: (any NSTextSelectionDataSource)? { get }

Skipped declarations

1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

NSTextSelectionNavigation.init()

inherited init: cannot prove legal (class declares 1 custom initializer)

All UIKit types →