One Logo Pool Ball
UIKit · IOS API REFERENCE

NSTextContentStorage

class · iOS 15.0+ · SDK 27.1

class NSTextContentStorage

Members (12)

method · iOS 15.0+

adjustedRange

TypeScript
adjustedRange(textRange: NSTextRange, forEditingTextSelection: boolean): (NSTextRange) | null
Swift declaration
func adjustedRange(from textRange: NSTextRange, forEditingTextSelection: Bool) -> NSTextRange?
method · iOS 15.0+

attributedString

TypeScript
attributedStringFor(textElement: NSTextElement): (_Foundation_NSAttributedString) | null
Swift declaration
func attributedString(for textElement: NSTextElement) -> NSAttributedString?
init

init

TypeScript
static init(): NSTextContentStorage
Swift declaration
init()
method · iOS 15.0+

location

TypeScript
location(location: SDKHandle, offset: number): (SDKHandle) | null
Swift declaration
func location(_ location: any NSTextLocation, offsetBy offset: Int) -> (any NSTextLocation)?
method · iOS 15.0+

offset

TypeScript
offset(from: SDKHandle, to: SDKHandle): number
Swift declaration
func offset(from: any NSTextLocation, to: any NSTextLocation) -> Int
method · iOS 15.0+

textElement

TypeScript
textElement(attributedString: _Foundation_NSAttributedString): (NSTextElement) | null
Swift declaration
func textElement(for attributedString: NSAttributedString) -> NSTextElement?
get · iOS 15.0+

attributedString

TypeScript
get attributedString(): (_Foundation_NSAttributedString) | null
Swift declaration
@NSCopying var attributedString: NSAttributedString? { get set }
set · iOS 15.0+

attributedString

TypeScript
set attributedString(value: (_Foundation_NSAttributedString) | null)
Swift declaration
@NSCopying var attributedString: NSAttributedString? { get set }
get · iOS 15.0+

delegate

TypeScript
get delegate(): (SDKHandle) | null
Swift declaration
weak var delegate: (any NSTextContentStorageDelegate)? { get set }
set · iOS 15.0+

delegate

TypeScript
set delegate(value: (Implements<NSTextContentStorageDelegate> | SDKHandle) | null)
Swift declaration
weak var delegate: (any NSTextContentStorageDelegate)? { get set }
get · iOS 26.0+

includesTextListMarkers

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

includesTextListMarkers

TypeScript
set includesTextListMarkers(value: boolean)
Swift declaration
var includesTextListMarkers: Bool { get set }

Skipped declarations

No declarations were skipped in this snapshot.

All UIKit types →