One Logo Pool Ball
UIKit · IOS API REFERENCE

NSLayoutManager

class · iOS 7.0+ · SDK 27.1

class NSLayoutManager

Members (92)

method · iOS 7.0+

cgGlyph

TypeScript
cgGlyphAt(glyphIndex: number): number
Swift declaration
func cgGlyph(at glyphIndex: Int) -> CGGlyph
method · iOS 7.0+

cgGlyph

TypeScript
cgGlyphAtIsValidIndex(glyphIndex: number): { $ret: number; $out: { "isValidIndex": boolean } }
Swift declaration
func cgGlyph(at glyphIndex: Int, isValidIndex: UnsafeMutablePointer<ObjCBool>?) -> CGGlyph

Omit the output parameters from the call. The result contains $ret and $out, with isValidIndex inside $out.

method · iOS 7.0+

addTextContainer

TypeScript
addTextContainer(container: NSTextContainer): void
Swift declaration
func addTextContainer(_ container: NSTextContainer)
method · iOS 7.0+

attachmentSize

TypeScript
attachmentSize(glyphIndex: number): { width: number; height: number }
Swift declaration
func attachmentSize(forGlyphAt glyphIndex: Int) -> CGSize
method · iOS 7.0+

boundingRect

TypeScript
boundingRect(glyphRange: SDKHandle, container: NSTextContainer): { x: number; y: number; width: number; height: number }
Swift declaration
func boundingRect(forGlyphRange glyphRange: NSRange, in container: NSTextContainer) -> CGRect
method · iOS 7.0+

characterIndexForGlyph

TypeScript
characterIndexForGlyph(glyphIndex: number): number
Swift declaration
func characterIndexForGlyph(at glyphIndex: Int) -> Int
method · iOS 7.0+

characterIndex

TypeScript
characterIndex(point: { x: number; y: number }, container: NSTextContainer, partialFraction?: ("animatableData" | SDKHandle) | null): number
Swift declaration
func characterIndex(for point: CGPoint, in container: NSTextContainer, fractionOfDistanceBetweenInsertionPoints partialFraction: UnsafeMutablePointer<CGFloat>?) -> Int
method · iOS 7.0+

characterRange

TypeScript
characterRange(glyphRange: SDKHandle, actualGlyphRange?: (SDKHandle) | null): SDKHandle
Swift declaration
func characterRange(forGlyphRange glyphRange: NSRange, actualGlyphRange: NSRangePointer?) -> NSRange
method · iOS 7.0+

drawBackground

TypeScript
drawBackground(glyphsToShow: SDKHandle, origin: { x: number; y: number }): void
Swift declaration
func drawBackground(forGlyphRange glyphsToShow: NSRange, at origin: CGPoint)
method · iOS 7.0+

drawGlyphs

TypeScript
drawGlyphs(glyphsToShow: SDKHandle, origin: { x: number; y: number }): void
Swift declaration
func drawGlyphs(forGlyphRange glyphsToShow: NSRange, at origin: CGPoint)
method · iOS 7.0+

drawStrikethrough

TypeScript
drawStrikethrough(glyphRange: SDKHandle, strikethroughVal: NSUnderlineStyle, baselineOffset: number, lineRect: { x: number; y: number; width: number; height: number }, lineGlyphRange: SDKHandle, containerOrigin: { x: number; y: number }): void
Swift declaration
func drawStrikethrough(forGlyphRange glyphRange: NSRange, strikethroughType strikethroughVal: NSUnderlineStyle, baselineOffset: CGFloat, lineFragmentRect lineRect: CGRect, lineFragmentGlyphRange lineGlyphRange: NSRange, containerOrigin: CGPoint)
method · iOS 7.0+

drawUnderline

TypeScript
drawUnderline(glyphRange: SDKHandle, underlineVal: NSUnderlineStyle, baselineOffset: number, lineRect: { x: number; y: number; width: number; height: number }, lineGlyphRange: SDKHandle, containerOrigin: { x: number; y: number }): void
Swift declaration
func drawUnderline(forGlyphRange glyphRange: NSRange, underlineType underlineVal: NSUnderlineStyle, baselineOffset: CGFloat, lineFragmentRect lineRect: CGRect, lineFragmentGlyphRange lineGlyphRange: NSRange, containerOrigin: CGPoint)
method · iOS 7.0+

drawsOutsideLineFragment

TypeScript
drawsOutsideLineFragment(glyphIndex: number): boolean
Swift declaration
func drawsOutsideLineFragment(forGlyphAt glyphIndex: Int) -> Bool
method · iOS 7.0+

ensureGlyphs

TypeScript
ensureGlyphsForCharacterRange(charRange: SDKHandle): void
Swift declaration
func ensureGlyphs(forCharacterRange charRange: NSRange)
method · iOS 7.0+

ensureGlyphs

TypeScript
ensureGlyphsForGlyphRange(glyphRange: SDKHandle): void
Swift declaration
func ensureGlyphs(forGlyphRange glyphRange: NSRange)
method · iOS 7.0+

ensureLayout

TypeScript
ensureLayoutForBoundingRectIn(bounds: { x: number; y: number; width: number; height: number }, container: NSTextContainer): void
Swift declaration
func ensureLayout(forBoundingRect bounds: CGRect, in container: NSTextContainer)
method · iOS 7.0+

ensureLayout

TypeScript
ensureLayoutForCharacterRange(charRange: SDKHandle): void
Swift declaration
func ensureLayout(forCharacterRange charRange: NSRange)
method · iOS 7.0+

ensureLayout

TypeScript
ensureLayoutForGlyphRange(glyphRange: SDKHandle): void
Swift declaration
func ensureLayout(forGlyphRange glyphRange: NSRange)
method · iOS 7.0+

ensureLayout

TypeScript
ensureLayoutFor(container: NSTextContainer): void
Swift declaration
func ensureLayout(for container: NSTextContainer)
method · iOS 7.0+

fillBackgroundRectArray

TypeScript
fillBackgroundRectArray(rectArray: "animatableData" | SDKHandle, rectCount: number, charRange: SDKHandle, color: UIColor): void
Swift declaration
func fillBackgroundRectArray(_ rectArray: UnsafePointer<CGRect>, count rectCount: Int, forCharacterRange charRange: NSRange, color: UIColor)
method · iOS 7.0+

firstUnlaidCharacterIndex

TypeScript
firstUnlaidCharacterIndex(): number
Swift declaration
func firstUnlaidCharacterIndex() -> Int
method · iOS 7.0+

firstUnlaidGlyphIndex

TypeScript
firstUnlaidGlyphIndex(): number
Swift declaration
func firstUnlaidGlyphIndex() -> Int
method · iOS 7.0+

fractionOfDistanceThroughGlyph

TypeScript
fractionOfDistanceThroughGlyph(point: { x: number; y: number }, container: NSTextContainer): number
Swift declaration
func fractionOfDistanceThroughGlyph(for point: CGPoint, in container: NSTextContainer) -> CGFloat
method · iOS 7.0+

getFirstUnlaidCharacterIndex

TypeScript
getFirstUnlaidCharacterIndex(charIndex?: (SDKHandle) | null, glyphIndex?: (SDKHandle) | null): void
Swift declaration
func getFirstUnlaidCharacterIndex(_ charIndex: UnsafeMutablePointer<Int>?, glyphIndex: UnsafeMutablePointer<Int>?)
method · iOS 7.0+

getLineFragmentInsertionPoints

TypeScript
getLineFragmentInsertionPoints(charIndex: number, aFlag: boolean, dFlag: boolean, positions?: ("animatableData" | SDKHandle) | null, charIndexes?: (SDKHandle) | null): number
Swift declaration
func getLineFragmentInsertionPoints(forCharacterAt charIndex: Int, alternatePositions aFlag: Bool, inDisplayOrder dFlag: Bool, positions: UnsafeMutablePointer<CGFloat>?, characterIndexes charIndexes: UnsafeMutablePointer<Int>?) -> Int
method

glyph

TypeScript
glyphAt(glyphIndex: number): number
Swift declaration
func glyph(at glyphIndex: Int) -> CGGlyph
method

glyph

TypeScript
glyphAtIsValidIndex(glyphIndex: number): { $ret: number; $out: { "isValidIndex": boolean } }
Swift declaration
func glyph(at glyphIndex: Int, isValidIndex: UnsafeMutablePointer<ObjCBool>?) -> CGGlyph

Omit the output parameters from the call. The result contains $ret and $out, with isValidIndex inside $out.

method · iOS 7.0+

glyphIndexForCharacter

TypeScript
glyphIndexForCharacter(charIndex: number): number
Swift declaration
func glyphIndexForCharacter(at charIndex: Int) -> Int
method · iOS 7.0+

glyphIndex

TypeScript
glyphIndexForIn(point: { x: number; y: number }, container: NSTextContainer): number
Swift declaration
func glyphIndex(for point: CGPoint, in container: NSTextContainer) -> Int
method · iOS 7.0+

glyphIndex

TypeScript
glyphIndexForInFractionOfDistanceThroughGlyph(point: { x: number; y: number }, container: NSTextContainer, partialFraction?: ("animatableData" | SDKHandle) | null): number
Swift declaration
func glyphIndex(for point: CGPoint, in container: NSTextContainer, fractionOfDistanceThroughGlyph partialFraction: UnsafeMutablePointer<CGFloat>?) -> Int
method · iOS 7.0+

glyphRange

TypeScript
glyphRangeForBoundingRectIn(bounds: { x: number; y: number; width: number; height: number }, container: NSTextContainer): SDKHandle
Swift declaration
func glyphRange(forBoundingRect bounds: CGRect, in container: NSTextContainer) -> NSRange
method · iOS 7.0+

glyphRange

TypeScript
glyphRangeForBoundingRectWithoutAdditionalLayoutIn(bounds: { x: number; y: number; width: number; height: number }, container: NSTextContainer): SDKHandle
Swift declaration
func glyphRange(forBoundingRectWithoutAdditionalLayout bounds: CGRect, in container: NSTextContainer) -> NSRange
method · iOS 7.0+

glyphRange

TypeScript
glyphRangeForCharacterRangeActualCharacterRange(charRange: SDKHandle, actualCharRange?: (SDKHandle) | null): SDKHandle
Swift declaration
func glyphRange(forCharacterRange charRange: NSRange, actualCharacterRange actualCharRange: NSRangePointer?) -> NSRange
method · iOS 7.0+

glyphRange

TypeScript
glyphRangeFor(container: NSTextContainer): SDKHandle
Swift declaration
func glyphRange(for container: NSTextContainer) -> NSRange
init · iOS 7.0+

init

TypeScript
static init(): NSLayoutManager
Swift declaration
init()
init · iOS 7.0+

init

TypeScript
static initCoder(coder: _Foundation_NSCoder): (NSLayoutManager) | null
Swift declaration
init?(coder: NSCoder)
method · iOS 7.0+

insertTextContainer

TypeScript
insertTextContainer(container: NSTextContainer, index: number): void
Swift declaration
func insertTextContainer(_ container: NSTextContainer, at index: Int)
method · iOS 7.0+

invalidateDisplay

TypeScript
invalidateDisplayForCharacterRange(charRange: SDKHandle): void
Swift declaration
func invalidateDisplay(forCharacterRange charRange: NSRange)
method · iOS 7.0+

invalidateDisplay

TypeScript
invalidateDisplayForGlyphRange(glyphRange: SDKHandle): void
Swift declaration
func invalidateDisplay(forGlyphRange glyphRange: NSRange)
method · iOS 7.0+

invalidateGlyphs

TypeScript
invalidateGlyphs(charRange: SDKHandle, delta: number, actualCharRange?: (SDKHandle) | null): void
Swift declaration
func invalidateGlyphs(forCharacterRange charRange: NSRange, changeInLength delta: Int, actualCharacterRange actualCharRange: NSRangePointer?)
method · iOS 7.0+

invalidateLayout

TypeScript
invalidateLayout(charRange: SDKHandle, actualCharRange?: (SDKHandle) | null): void
Swift declaration
func invalidateLayout(forCharacterRange charRange: NSRange, actualCharacterRange actualCharRange: NSRangePointer?)
method · iOS 7.0+

isValidGlyphIndex

TypeScript
isValidGlyphIndex(glyphIndex: number): boolean
Swift declaration
func isValidGlyphIndex(_ glyphIndex: Int) -> Bool
method · iOS 7.0+

lineFragmentRect

TypeScript
lineFragmentRectForGlyphAtEffectiveRange(glyphIndex: number, effectiveGlyphRange?: (SDKHandle) | null): { x: number; y: number; width: number; height: number }
Swift declaration
func lineFragmentRect(forGlyphAt glyphIndex: Int, effectiveRange effectiveGlyphRange: NSRangePointer?) -> CGRect
method · iOS 9.0+

lineFragmentRect

TypeScript
lineFragmentRectForGlyphAtEffectiveRangeWithoutAdditionalLayout(glyphIndex: number, effectiveGlyphRange: (SDKHandle) | null, flag: boolean): { x: number; y: number; width: number; height: number }
Swift declaration
func lineFragmentRect(forGlyphAt glyphIndex: Int, effectiveRange effectiveGlyphRange: NSRangePointer?, withoutAdditionalLayout flag: Bool) -> CGRect
method · iOS 7.0+

lineFragmentUsedRect

TypeScript
lineFragmentUsedRectForGlyphAtEffectiveRange(glyphIndex: number, effectiveGlyphRange?: (SDKHandle) | null): { x: number; y: number; width: number; height: number }
Swift declaration
func lineFragmentUsedRect(forGlyphAt glyphIndex: Int, effectiveRange effectiveGlyphRange: NSRangePointer?) -> CGRect
method · iOS 9.0+

lineFragmentUsedRect

TypeScript
lineFragmentUsedRectForGlyphAtEffectiveRangeWithoutAdditionalLayout(glyphIndex: number, effectiveGlyphRange: (SDKHandle) | null, flag: boolean): { x: number; y: number; width: number; height: number }
Swift declaration
func lineFragmentUsedRect(forGlyphAt glyphIndex: Int, effectiveRange effectiveGlyphRange: NSRangePointer?, withoutAdditionalLayout flag: Bool) -> CGRect
method · iOS 7.0+

location

TypeScript
location(glyphIndex: number): { x: number; y: number }
Swift declaration
func location(forGlyphAt glyphIndex: Int) -> CGPoint
method · iOS 7.0+

notShownAttribute

TypeScript
notShownAttribute(glyphIndex: number): boolean
Swift declaration
func notShownAttribute(forGlyphAt glyphIndex: Int) -> Bool
method · iOS 7.0+

processEditing

TypeScript
processEditing(textStorage: NSTextStorage, editMask: NSTextStorage_EditActions, newCharRange: SDKHandle, delta: number, invalidatedCharRange: SDKHandle): void
Swift declaration
func processEditing(for textStorage: NSTextStorage, edited editMask: NSTextStorage.EditActions, range newCharRange: NSRange, changeInLength delta: Int, invalidatedRange invalidatedCharRange: NSRange)
method · iOS 7.0+

propertyForGlyph

TypeScript
propertyForGlyph(glyphIndex: number): NSLayoutManager_GlyphProperty
Swift declaration
func propertyForGlyph(at glyphIndex: Int) -> NSLayoutManager.GlyphProperty
method · iOS 7.0+

range

TypeScript
range(glyphIndex: number): SDKHandle
Swift declaration
func range(ofNominallySpacedGlyphsContaining glyphIndex: Int) -> NSRange
method · iOS 7.0+

removeTextContainer

TypeScript
removeTextContainer(index: number): void
Swift declaration
func removeTextContainer(at index: Int)
method · iOS 7.0+

setAttachmentSize

TypeScript
setAttachmentSize(attachmentSize: { width: number; height: number }, glyphRange: SDKHandle): void
Swift declaration
func setAttachmentSize(_ attachmentSize: CGSize, forGlyphRange glyphRange: NSRange)
method · iOS 7.0+

setDrawsOutsideLineFragment

TypeScript
setDrawsOutsideLineFragment(flag: boolean, glyphIndex: number): void
Swift declaration
func setDrawsOutsideLineFragment(_ flag: Bool, forGlyphAt glyphIndex: Int)
method · iOS 7.0+

setExtraLineFragmentRect

TypeScript
setExtraLineFragmentRect(fragmentRect: { x: number; y: number; width: number; height: number }, usedRect: { x: number; y: number; width: number; height: number }, container: NSTextContainer): void
Swift declaration
func setExtraLineFragmentRect(_ fragmentRect: CGRect, usedRect: CGRect, textContainer container: NSTextContainer)
method · iOS 7.0+

setLineFragmentRect

TypeScript
setLineFragmentRect(fragmentRect: { x: number; y: number; width: number; height: number }, glyphRange: SDKHandle, usedRect: { x: number; y: number; width: number; height: number }): void
Swift declaration
func setLineFragmentRect(_ fragmentRect: CGRect, forGlyphRange glyphRange: NSRange, usedRect: CGRect)
method · iOS 7.0+

setLocation

TypeScript
setLocation(location: { x: number; y: number }, glyphRange: SDKHandle): void
Swift declaration
func setLocation(_ location: CGPoint, forStartOfGlyphRange glyphRange: NSRange)
method · iOS 7.0+

setNotShownAttribute

TypeScript
setNotShownAttribute(flag: boolean, glyphIndex: number): void
Swift declaration
func setNotShownAttribute(_ flag: Bool, forGlyphAt glyphIndex: Int)
method · iOS 7.0+

setTextContainer

TypeScript
setTextContainer(container: NSTextContainer, glyphRange: SDKHandle): void
Swift declaration
func setTextContainer(_ container: NSTextContainer, forGlyphRange glyphRange: NSRange)
method · iOS 7.0+ · Deprecated in iOS 13.0

showCGGlyphs

TypeScript
showCGGlyphsPositionsCountFontMatrixAttributesIn(glyphs: SDKHandle, positions: "animatableData" | SDKHandle, glyphCount: number, font: UIFont, textMatrix: _CoreFoundation_CGAffineTransform, attributes: NativeMap<_Foundation_NSAttributedString_Key, unknown>, graphicsContext: _CoreGraphics_CGContext): void
Swift declaration
func showCGGlyphs(_ glyphs: UnsafePointer<CGGlyph>, positions: UnsafePointer<CGPoint>, count glyphCount: Int, font: UIFont, matrix textMatrix: CGAffineTransform, attributes: [NSAttributedString.Key : Any] = [:], in graphicsContext: CGContext)
method · iOS 13.0+

showCGGlyphs

TypeScript
showCGGlyphsPositionsCountFontTextMatrixAttributesIn(glyphs: SDKHandle, positions: "animatableData" | SDKHandle, glyphCount: number, font: UIFont, textMatrix: _CoreFoundation_CGAffineTransform, attributes: NativeMap<_Foundation_NSAttributedString_Key, unknown>, CGContext: _CoreGraphics_CGContext): void
Swift declaration
func showCGGlyphs(_ glyphs: UnsafePointer<CGGlyph>, positions: UnsafePointer<CGPoint>, count glyphCount: Int, font: UIFont, textMatrix: CGAffineTransform, attributes: [NSAttributedString.Key : Any] = [:], in CGContext: CGContext)
method · iOS 7.0+

strikethroughGlyphRange

TypeScript
strikethroughGlyphRange(glyphRange: SDKHandle, strikethroughVal: NSUnderlineStyle, lineRect: { x: number; y: number; width: number; height: number }, lineGlyphRange: SDKHandle, containerOrigin: { x: number; y: number }): void
Swift declaration
func strikethroughGlyphRange(_ glyphRange: NSRange, strikethroughType strikethroughVal: NSUnderlineStyle, lineFragmentRect lineRect: CGRect, lineFragmentGlyphRange lineGlyphRange: NSRange, containerOrigin: CGPoint)
method · iOS 7.0+

textContainerChangedGeometry

TypeScript
textContainerChangedGeometry(container: NSTextContainer): void
Swift declaration
func textContainerChangedGeometry(_ container: NSTextContainer)
method · iOS 7.0+

textContainer

TypeScript
textContainerForGlyphAtEffectiveRange(glyphIndex: number, effectiveGlyphRange?: (SDKHandle) | null): (NSTextContainer) | null
Swift declaration
func textContainer(forGlyphAt glyphIndex: Int, effectiveRange effectiveGlyphRange: NSRangePointer?) -> NSTextContainer?
method · iOS 9.0+

textContainer

TypeScript
textContainerForGlyphAtEffectiveRangeWithoutAdditionalLayout(glyphIndex: number, effectiveGlyphRange: (SDKHandle) | null, flag: boolean): (NSTextContainer) | null
Swift declaration
func textContainer(forGlyphAt glyphIndex: Int, effectiveRange effectiveGlyphRange: NSRangePointer?, withoutAdditionalLayout flag: Bool) -> NSTextContainer?
method · iOS 7.0+

truncatedGlyphRange

TypeScript
truncatedGlyphRange(glyphIndex: number): SDKHandle
Swift declaration
func truncatedGlyphRange(inLineFragmentForGlyphAt glyphIndex: Int) -> NSRange
method · iOS 7.0+

underlineGlyphRange

TypeScript
underlineGlyphRange(glyphRange: SDKHandle, underlineVal: NSUnderlineStyle, lineRect: { x: number; y: number; width: number; height: number }, lineGlyphRange: SDKHandle, containerOrigin: { x: number; y: number }): void
Swift declaration
func underlineGlyphRange(_ glyphRange: NSRange, underlineType underlineVal: NSUnderlineStyle, lineFragmentRect lineRect: CGRect, lineFragmentGlyphRange lineGlyphRange: NSRange, containerOrigin: CGPoint)
method · iOS 7.0+

usedRect

TypeScript
usedRect(container: NSTextContainer): { x: number; y: number; width: number; height: number }
Swift declaration
func usedRect(for container: NSTextContainer) -> CGRect
get · iOS 7.0+

allowsNonContiguousLayout

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

allowsNonContiguousLayout

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

delegate

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

delegate

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

extraLineFragmentRect

TypeScript
get extraLineFragmentRect(): { x: number; y: number; width: number; height: number }
Swift declaration
var extraLineFragmentRect: CGRect { get }
get · iOS 7.0+

extraLineFragmentTextContainer

TypeScript
get extraLineFragmentTextContainer(): (NSTextContainer) | null
Swift declaration
var extraLineFragmentTextContainer: NSTextContainer? { get }
get · iOS 7.0+

extraLineFragmentUsedRect

TypeScript
get extraLineFragmentUsedRect(): { x: number; y: number; width: number; height: number }
Swift declaration
var extraLineFragmentUsedRect: CGRect { get }
get · iOS 7.0+

hasNonContiguousLayout

TypeScript
get hasNonContiguousLayout(): boolean
Swift declaration
var hasNonContiguousLayout: Bool { get }
get · iOS 7.0+ · Deprecated in iOS 13.0

hyphenationFactor

TypeScript
get hyphenationFactor(): number
Swift declaration
var hyphenationFactor: CGFloat { get set }
set · iOS 7.0+ · Deprecated in iOS 13.0

hyphenationFactor

TypeScript
set hyphenationFactor(value: number)
Swift declaration
var hyphenationFactor: CGFloat { get set }
get · iOS 12.0+

limitsLayoutForSuspiciousContents

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

limitsLayoutForSuspiciousContents

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

numberOfGlyphs

TypeScript
get numberOfGlyphs(): number
Swift declaration
var numberOfGlyphs: Int { get }
get · iOS 7.0+

showsControlCharacters

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

showsControlCharacters

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

showsInvisibleCharacters

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

showsInvisibleCharacters

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

textContainers

TypeScript
get textContainers(): Array<NSTextContainer>
Swift declaration
var textContainers: [NSTextContainer] { get }
get · iOS 7.0+

textStorage

TypeScript
get textStorage(): (NSTextStorage) | null
Swift declaration
unowned(unsafe) var textStorage: NSTextStorage? { get set }
set · iOS 7.0+

textStorage

TypeScript
set textStorage(value: (NSTextStorage) | null)
Swift declaration
unowned(unsafe) var textStorage: NSTextStorage? { get set }
get · iOS 13.0+

usesDefaultHyphenation

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

usesDefaultHyphenation

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

usesFontLeading

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

usesFontLeading

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

Skipped declarations

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

NSLayoutManager.setGlyphs(_:properties:characterIndexes:font:forGlyphRange:)

The iOS SDK compiler rejected this binding: cannot convert value of type 'UnsafePointer<NSLayoutManager.GlyphProperty>' to expected argument type 'UnsafePointer<Int>'

NSLayoutManager.getGlyphs(in:glyphs:properties:characterIndexes:bidiLevels:)

The iOS SDK compiler rejected this binding: cannot convert value of type 'UnsafeMutablePointer<NSLayoutManager.GlyphProperty>' to expected argument type 'UnsafeMutablePointer<Int>'

NSLayoutManager.enumerateLineFragments(forGlyphRange:using:)

synchronous callback requires a nonescaping JS-thread call

NSLayoutManager.enumerateEnclosingRects(forGlyphRange:withinSelectedGlyphRange:in:using:)

synchronous callback requires a nonescaping JS-thread call

All UIKit types →