UIKit · IOS API REFERENCE
NSTextSelectionNavigation
class · iOS 15.0+ · SDK 27.1
class NSTextSelectionNavigation
Members (13)
method · iOS 15.0+deletionRanges
TypeScriptdeletionRanges(textSelection: NSTextSelection, direction: NSTextSelectionNavigation_Direction, destination: NSTextSelectionNavigation_Destination, allowsDecomposition: boolean): Array<NSTextRange>
Swift declarationfunc deletionRanges(for textSelection: NSTextSelection, direction: NSTextSelectionNavigation.Direction, destination: NSTextSelectionNavigation.Destination, allowsDecomposition: Bool) -> [NSTextRange]
method · iOS 15.0+destinationSelection
TypeScriptdestinationSelection(textSelection: NSTextSelection, direction: NSTextSelectionNavigation_Direction, destination: NSTextSelectionNavigation_Destination, extending: boolean, confined: boolean): (NSTextSelection) | null
Swift declarationfunc destinationSelection(for textSelection: NSTextSelection, direction: NSTextSelectionNavigation.Direction, destination: NSTextSelectionNavigation.Destination, extending: Bool, confined: Bool) -> NSTextSelection?
method · iOS 15.0+flushLayoutCache
TypeScriptflushLayoutCache(): void
Swift declarationfunc flushLayoutCache()
init · iOS 15.0+init
TypeScriptstatic init(dataSource: SDKHandle): NSTextSelectionNavigation
Swift declarationinit(dataSource: any NSTextSelectionDataSource)
method · iOS 15.0+resolvedInsertionLocation
TypeScriptresolvedInsertionLocation(textSelection: NSTextSelection, writingDirection: NSTextSelectionNavigation_WritingDirection): (SDKHandle) | null
Swift declarationfunc resolvedInsertionLocation(for textSelection: NSTextSelection, writingDirection: NSTextSelectionNavigation.WritingDirection) -> (any NSTextLocation)?
method · iOS 15.0+textSelection
TypeScripttextSelectionForEnclosingInContainerAt(selectionGranularity: NSTextSelection_Granularity, point: { x: number; y: number }, location: SDKHandle): (NSTextSelection) | null
Swift declarationfunc textSelection(for selectionGranularity: NSTextSelection.Granularity, enclosing point: CGPoint, inContainerAt location: any NSTextLocation) -> NSTextSelection?
method · iOS 15.0+textSelection
TypeScripttextSelectionForEnclosing(selectionGranularity: NSTextSelection_Granularity, textSelection: NSTextSelection): NSTextSelection
Swift declarationfunc textSelection(for selectionGranularity: NSTextSelection.Granularity, enclosing textSelection: NSTextSelection) -> NSTextSelection
method · iOS 15.0+textSelections
TypeScripttextSelections(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 declarationfunc textSelections(interactingAt point: CGPoint, inContainerAt containerLocation: any NSTextLocation, anchors: [NSTextSelection], modifiers: NSTextSelectionNavigation.Modifier, selecting: Bool, bounds: CGRect) -> [NSTextSelection]
get · iOS 15.0+allowsNonContiguousRanges
TypeScriptget allowsNonContiguousRanges(): boolean
Swift declarationvar allowsNonContiguousRanges: Bool { get set }
set · iOS 15.0+allowsNonContiguousRanges
TypeScriptset allowsNonContiguousRanges(value: boolean)
Swift declarationvar allowsNonContiguousRanges: Bool { get set }
get · iOS 15.0+rotatesCoordinateSystemForLayoutOrientation
TypeScriptget rotatesCoordinateSystemForLayoutOrientation(): boolean
Swift declarationvar rotatesCoordinateSystemForLayoutOrientation: Bool { get set }
set · iOS 15.0+rotatesCoordinateSystemForLayoutOrientation
TypeScriptset rotatesCoordinateSystemForLayoutOrientation(value: boolean)
Swift declarationvar rotatesCoordinateSystemForLayoutOrientation: Bool { get set }
get · iOS 15.0+textSelectionDataSource
TypeScriptget textSelectionDataSource(): (SDKHandle) | null
Swift declarationweak 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 →