characterIndex
TypeScriptcharacterIndex(point: { x: number; y: number }): numberSwift declarationfunc characterIndex(for point: CGPoint) -> Intclass · iOS 15.0+ · SDK 27.1
class NSTextLineFragmentcharacterIndex(point: { x: number; y: number }): numberSwift declarationfunc characterIndex(for point: CGPoint) -> Intdraw(point: { x: number; y: number }, context: _CoreGraphics_CGContext): voidSwift declarationfunc draw(at point: CGPoint, in context: CGContext)fractionOfDistanceThroughGlyph(point: { x: number; y: number }): numberSwift declarationfunc fractionOfDistanceThroughGlyph(for point: CGPoint) -> CGFloatstatic initAttributedStringRange(attributedString: _Foundation_NSAttributedString, range: SDKHandle): NSTextLineFragmentSwift declarationinit(attributedString: NSAttributedString, range: NSRange)static initCoder(aDecoder: _Foundation_NSCoder): (NSTextLineFragment) | nullSwift declarationinit?(coder aDecoder: NSCoder)static initStringAttributesRange(string: string, attributes: NativeMap<_Foundation_NSAttributedString_Key, unknown>, range: SDKHandle): NSTextLineFragmentSwift declarationconvenience init(string: String, attributes: [NSAttributedString.Key : Any] = [:], range: NSRange)locationForCharacter(index: number): { x: number; y: number }Swift declarationfunc locationForCharacter(at index: Int) -> CGPointget attributedString(): _Foundation_NSAttributedStringSwift declarationvar attributedString: NSAttributedString { get }get characterRange(): SDKHandleSwift declarationvar characterRange: NSRange { get }get glyphOrigin(): { x: number; y: number }Swift declarationvar glyphOrigin: CGPoint { get }get typographicBounds(): { x: number; y: number; width: number; height: number }Swift declarationvar typographicBounds: CGRect { get }1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.
NSTextLineFragment.init()
inherited init: cannot prove legal (class declares 2 custom initializers)