init
TypeScriptstatic initCoder(coder: _Foundation_NSCoder): (NSTextSelection) | nullSwift declarationinit?(coder: NSCoder)class · iOS 15.0+ · SDK 27.1
class NSTextSelectionstatic initCoder(coder: _Foundation_NSCoder): (NSTextSelection) | nullSwift declarationinit?(coder: NSCoder)static initAffinity(location: SDKHandle, affinity: NSTextSelection_Affinity): NSTextSelectionSwift declarationconvenience init(_ location: any NSTextLocation, affinity: NSTextSelection.Affinity)static initRangeAffinityGranularity(range: NSTextRange, affinity: NSTextSelection_Affinity, granularity: NSTextSelection_Granularity): NSTextSelectionSwift declarationconvenience init(range: NSTextRange, affinity: NSTextSelection.Affinity, granularity: NSTextSelection.Granularity)static initAffinityGranularity(textRanges: Array<NSTextRange>, affinity: NSTextSelection_Affinity, granularity: NSTextSelection_Granularity): NSTextSelectionSwift declarationinit(_ textRanges: [NSTextRange], affinity: NSTextSelection.Affinity, granularity: NSTextSelection.Granularity)textSelection(textRanges: Array<NSTextRange>): NSTextSelectionSwift declarationfunc textSelection(_ textRanges: [NSTextRange]) -> NSTextSelectionget affinity(): NSTextSelection_AffinitySwift declarationvar affinity: NSTextSelection.Affinity { get }get anchorPositionOffset(): numberSwift declarationvar anchorPositionOffset: CGFloat { get set }set anchorPositionOffset(value: number)Swift declarationvar anchorPositionOffset: CGFloat { get set }get granularity(): NSTextSelection_GranularitySwift declarationvar granularity: NSTextSelection.Granularity { get }get isLogical(): booleanSwift declarationvar isLogical: Bool { get set }set isLogical(value: boolean)Swift declarationvar isLogical: Bool { get set }get secondarySelectionLocation(): (SDKHandle) | nullSwift declarationvar secondarySelectionLocation: (any NSTextLocation)? { get set }set secondarySelectionLocation(value: (SDKHandle) | null)Swift declarationvar secondarySelectionLocation: (any NSTextLocation)? { get set }get textRanges(): Array<NSTextRange>Swift declarationvar textRanges: [NSTextRange] { get }get isTransient(): booleanSwift declarationvar isTransient: Bool { get }get typingAttributes(): NativeMap<_Foundation_NSAttributedString_Key, unknown>Swift declarationvar typingAttributes: [NSAttributedString.Key : Any] { get set }set typingAttributes(value: NativeMap<_Foundation_NSAttributedString_Key, unknown>)Swift declarationvar typingAttributes: [NSAttributedString.Key : Any] { get set }1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.
NSTextSelection.init()
inherited init: cannot prove legal (class declares 5 custom initializers)