One Logo Pool Ball
UIKit · IOS API REFERENCE

NSTextAttachmentViewProvider

class · iOS 15.0+ · SDK 27.1

class NSTextAttachmentViewProvider

Members (10)

method · iOS 15.0+

attachmentBounds

TypeScript
attachmentBounds(attributes: NativeMap<_Foundation_NSAttributedString_Key, unknown>, location: SDKHandle, textContainer: (NSTextContainer) | null, proposedLineFragment: { x: number; y: number; width: number; height: number }, position: { x: number; y: number }): { x: number; y: number; width: number; height: number }
Swift declaration
func attachmentBounds(for attributes: [NSAttributedString.Key : Any], location: any NSTextLocation, textContainer: NSTextContainer?, proposedLineFragment: CGRect, position: CGPoint) -> CGRect
init · iOS 15.0+

init

TypeScript
static init(textAttachment: NSTextAttachment, parentView: (UIView) | null, textLayoutManager: (NSTextLayoutManager) | null, location: SDKHandle): NSTextAttachmentViewProvider
Swift declaration
init(textAttachment: NSTextAttachment, parentView: UIView?, textLayoutManager: NSTextLayoutManager?, location: any NSTextLocation)
method · iOS 15.0+

loadView

TypeScript
loadView(): void
Swift declaration
func loadView()
get · iOS 15.0+

location

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

textAttachment

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

textLayoutManager

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

tracksTextAttachmentViewBounds

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

tracksTextAttachmentViewBounds

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

view

TypeScript
get view(): (UIView) | null
Swift declaration
var view: UIView? { get set }
set · iOS 15.0+

view

TypeScript
set view(value: (UIView) | null)
Swift declaration
var view: UIView? { get set }

Skipped declarations

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

NSTextAttachmentViewProvider.init()

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

All UIKit types →