One Logo Pool Ball
UIKit · IOS API REFERENCE

NSTextViewportLayoutController

class · iOS 15.0+ · SDK 27.1

class NSTextViewportLayoutController

Members (9)

method · iOS 15.0+

adjustViewport

TypeScript
adjustViewport(verticalOffset: number): void
Swift declaration
func adjustViewport(byVerticalOffset verticalOffset: CGFloat)
init · iOS 15.0+

init

TypeScript
static init(textLayoutManager: NSTextLayoutManager): NSTextViewportLayoutController
Swift declaration
init(textLayoutManager: NSTextLayoutManager)
method · iOS 15.0+

layoutViewport

TypeScript
layoutViewport(): void
Swift declaration
func layoutViewport()
method · iOS 15.0+

relocateViewport

TypeScript
relocateViewport(textLocation: SDKHandle): number
Swift declaration
func relocateViewport(to textLocation: any NSTextLocation) -> CGFloat
get · iOS 15.0+

delegate

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

delegate

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

textLayoutManager

TypeScript
get textLayoutManager(): (NSTextLayoutManager) | null
Swift declaration
weak var textLayoutManager: NSTextLayoutManager? { get }
get · iOS 15.0+

viewportBounds

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

viewportRange

TypeScript
get viewportRange(): (NSTextRange) | null
Swift declaration
var viewportRange: NSTextRange? { get }

Skipped declarations

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

NSTextViewportLayoutController.init()

inherited init: cannot prove legal (class declares 1 custom initializer)

All UIKit types →