One Logo Pool Ball
UIKit · IOS API REFERENCE

NSTextAttachment

class · iOS 7.0+ · SDK 27.1

class NSTextAttachment

Members (20)

get · iOS 7.0+

character

TypeScript
static get character(): number
Swift declaration
class var character: Int { get }
static · iOS 15.0+

registerViewProviderClass

TypeScript
static registerViewProviderClass(textAttachmentViewProviderClass: string, fileType: string): void
Swift declaration
class func registerViewProviderClass(_ textAttachmentViewProviderClass: AnyClass, forFileType fileType: String)
static · iOS 15.0+

textAttachmentViewProviderClass

TypeScript
static textAttachmentViewProviderClass(fileType: string): (string) | null
Swift declaration
class func textAttachmentViewProviderClass(forFileType fileType: String) -> AnyClass?
init · iOS 13.0+

init

TypeScript
static initImage(image: UIImage): NSTextAttachment
Swift declaration
init(image: UIImage)
init · iOS 7.0+

init

TypeScript
static initDataOfType(contentData?: (ArrayBuffer) | null, uti?: (string) | null): NSTextAttachment
Swift declaration
init(data contentData: Data?, ofType uti: String?)
get · iOS 15.0+

allowsTextAttachmentView

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

allowsTextAttachmentView

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

bounds

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

bounds

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

contents

TypeScript
get contents(): (ArrayBuffer) | null
Swift declaration
var contents: Data? { get set }
set · iOS 7.0+

contents

TypeScript
set contents(value: (ArrayBuffer) | null)
Swift declaration
var contents: Data? { get set }
get · iOS 7.0+

fileType

TypeScript
get fileType(): (string) | null
Swift declaration
var fileType: String? { get set }
set · iOS 7.0+

fileType

TypeScript
set fileType(value: (string) | null)
Swift declaration
var fileType: String? { get set }
get · iOS 7.0+

fileWrapper

TypeScript
get fileWrapper(): (_Foundation_FileWrapper) | null
Swift declaration
var fileWrapper: FileWrapper? { get set }
set · iOS 7.0+

fileWrapper

TypeScript
set fileWrapper(value: (_Foundation_FileWrapper) | null)
Swift declaration
var fileWrapper: FileWrapper? { get set }
get · iOS 7.0+

image

TypeScript
get image(): (UIImage) | null
Swift declaration
var image: UIImage? { get set }
set · iOS 7.0+

image

TypeScript
set image(value: (UIImage) | null)
Swift declaration
var image: UIImage? { get set }
get · iOS 15.0+

lineLayoutPadding

TypeScript
get lineLayoutPadding(): number
Swift declaration
var lineLayoutPadding: CGFloat { get set }
set · iOS 15.0+

lineLayoutPadding

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

usesTextAttachmentView

TypeScript
get usesTextAttachmentView(): boolean
Swift declaration
var usesTextAttachmentView: Bool { get }

Skipped declarations

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

NSTextAttachment.init()

inherited init: cannot prove legal (class declares 2 custom initializers)

All UIKit types →