adjustViewport
TypeScriptadjustViewport(verticalOffset: number): voidSwift declarationfunc adjustViewport(byVerticalOffset verticalOffset: CGFloat)class · iOS 15.0+ · SDK 27.1
class NSTextViewportLayoutControlleradjustViewport(verticalOffset: number): voidSwift declarationfunc adjustViewport(byVerticalOffset verticalOffset: CGFloat)static init(textLayoutManager: NSTextLayoutManager): NSTextViewportLayoutControllerSwift declarationinit(textLayoutManager: NSTextLayoutManager)layoutViewport(): voidSwift declarationfunc layoutViewport()relocateViewport(textLocation: SDKHandle): numberSwift declarationfunc relocateViewport(to textLocation: any NSTextLocation) -> CGFloatget delegate(): (SDKHandle) | nullSwift declarationweak var delegate: (any NSTextViewportLayoutControllerDelegate)? { get set }set delegate(value: (SDKHandle) | null)Swift declarationweak var delegate: (any NSTextViewportLayoutControllerDelegate)? { get set }get textLayoutManager(): (NSTextLayoutManager) | nullSwift declarationweak var textLayoutManager: NSTextLayoutManager? { get }get viewportBounds(): { x: number; y: number; width: number; height: number }Swift declarationvar viewportBounds: CGRect { get }get viewportRange(): (NSTextRange) | nullSwift declarationvar viewportRange: NSTextRange? { get }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)