Skip to content

init(attributedLabel:attributedValue:)

Category: Initializer

Platforms: iOS 14.0+, iPadOS 14.0+, Mac Catalyst 14.0+, macOS 11.0+, tvOS 14.0+, visionOS 1.0+, watchOS 7.0+

Overview

Creates new custom content with an attributed string and attributed value.

Declaration

convenience init(
    attributedLabel label: NSAttributedString,
    attributedValue value: NSAttributedString
)

Details

Parameters

  • Parameters

See Also

  • Creating custom content
  • convenience init(label: String, value: String)
  • init?(coder: NSCoder)

  • Accessibility

  • AXCustomContent
  • init(attributedLabel:attributedValue:)

init(attributed Label: attributed Value:)

Topics (Grouped)

Creating custom content

Code Examples

convenience init(
    attributedLabel label: NSAttributedString,
    attributedValue value: NSAttributedString
)

Source: https://developer.apple.com/documentation/accessibility/axcustomcontent/init(attributedlabel:attributedvalue:)