One Logo Pool Ball
UIKit · IOS API REFERENCE

NSTextRange

class · iOS 15.0+ · SDK 27.1

class NSTextRange

Members (11)

method · iOS 15.0+

contains

TypeScript
contains(location: SDKHandle): boolean
Swift declaration
func contains(_ location: any NSTextLocation) -> Bool
method · iOS 15.0+

contains

TypeScript
contains23749(textRange: NSTextRange): boolean
Swift declaration
func contains(_ textRange: NSTextRange) -> Bool
init · iOS 15.0+

init

TypeScript
static initLocation(location: SDKHandle): NSTextRange
Swift declaration
convenience init(location: any NSTextLocation)
init · iOS 15.0+

init

TypeScript
static initLocationEnd(location: SDKHandle, endLocation?: (SDKHandle) | null): (NSTextRange) | null
Swift declaration
init?(location: any NSTextLocation, end endLocation: (any NSTextLocation)?)
method · iOS 15.0+

intersects

TypeScript
intersects(textRange: NSTextRange): boolean
Swift declaration
func intersects(_ textRange: NSTextRange) -> Bool
method · iOS 15.0+

isEqual

TypeScript
isEqual(textRange: NSTextRange): boolean
Swift declaration
func isEqual(to textRange: NSTextRange) -> Bool
method · iOS 15.0+

union

TypeScript
union(textRange: NSTextRange): NSTextRange
Swift declaration
func union(_ textRange: NSTextRange) -> Self
method · iOS 15.0+

intersection

TypeScript
intersection(textRange: NSTextRange): (NSTextRange) | null
Swift declaration
func intersection(_ textRange: NSTextRange) -> Self?
get · iOS 15.0+

isEmpty

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

endLocation

TypeScript
get endLocation(): SDKHandle
Swift declaration
var endLocation: any NSTextLocation { get }
get · iOS 15.0+

location

TypeScript
get location(): SDKHandle
Swift declaration
var location: any NSTextLocation { get }

Skipped declarations

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

NSTextRange.init()

inherited init: cannot prove legal (class declares 3 custom initializers)

All UIKit types →