Skip to content

init(label:value:)

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 a label and value.

Declaration

convenience init(
    label: String,
    value: String
)

Details

Parameters

  • Parameters

See Also

  • Creating custom content
  • convenience init(attributedLabel: NSAttributedString, attributedValue: NSAttributedString)
  • init?(coder: NSCoder)

init(label: value:)

Topics (Grouped)

Creating custom content

Code Examples

convenience init(
    label: String,
    value: String
)

Source: https://developer.apple.com/documentation/accessibility/axcustomcontent/init(label:value:)