UIKit · IOS API REFERENCE
NSTextAttachmentViewProvider
class · iOS 15.0+ · SDK 27.1
class NSTextAttachmentViewProvider
Members (10)
method · iOS 15.0+attachmentBounds
TypeScriptattachmentBounds(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 declarationfunc attachmentBounds(for attributes: [NSAttributedString.Key : Any], location: any NSTextLocation, textContainer: NSTextContainer?, proposedLineFragment: CGRect, position: CGPoint) -> CGRect
init · iOS 15.0+init
TypeScriptstatic init(textAttachment: NSTextAttachment, parentView: (UIView) | null, textLayoutManager: (NSTextLayoutManager) | null, location: SDKHandle): NSTextAttachmentViewProvider
Swift declarationinit(textAttachment: NSTextAttachment, parentView: UIView?, textLayoutManager: NSTextLayoutManager?, location: any NSTextLocation)
method · iOS 15.0+loadView
TypeScriptloadView(): void
Swift declarationfunc loadView()
get · iOS 15.0+location
TypeScriptget location(): SDKHandle
Swift declarationvar location: any NSTextLocation { get }
get · iOS 15.0+textAttachment
TypeScriptget textAttachment(): (NSTextAttachment) | null
Swift declarationweak var textAttachment: NSTextAttachment? { get }
get · iOS 15.0+textLayoutManager
TypeScriptget textLayoutManager(): (NSTextLayoutManager) | null
Swift declarationweak var textLayoutManager: NSTextLayoutManager? { get }
get · iOS 15.0+tracksTextAttachmentViewBounds
TypeScriptget tracksTextAttachmentViewBounds(): boolean
Swift declarationvar tracksTextAttachmentViewBounds: Bool { get set }
set · iOS 15.0+tracksTextAttachmentViewBounds
TypeScriptset tracksTextAttachmentViewBounds(value: boolean)
Swift declarationvar tracksTextAttachmentViewBounds: Bool { get set }
get · iOS 15.0+view
TypeScriptget view(): (UIView) | null
Swift declarationvar view: UIView? { get set }
set · iOS 15.0+view
TypeScriptset view(value: (UIView) | null)
Swift declarationvar 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 →