Skip to content

init(attributedTitle:range:gridlinePositions:valueDescriptionProvider:)

Category: Initializer

Platforms: iOS 15.0+, iPadOS 15.0+, Mac Catalyst 15.0+, macOS 12.0+, tvOS 15.0+, visionOS 1.0+, watchOS 8.0+

Overview

Creates a numeric data axis with the specified attributed title, range, gridline positions, and value description provider closure.

Declaration

convenience init(
    attributedTitle: NSAttributedString,
    range: ClosedRange<Double>,
    gridlinePositions: [Double],
    valueDescriptionProvider: @escaping (Double) -> String
)

Details

See Also

  • Creating a numeric data axis
  • convenience init(title: String, range: ClosedRange, gridlinePositions: [Double], valueDescriptionProvider: (Double) -> String)

  • Accessibility

  • AXNumericDataAxisDescriptor
  • init(attributedTitle:range:gridlinePositions:valueDescriptionProvider:)

init(attributed Title: range: gridline Positions: value Description Provider:)

Topics (Grouped)

Creating a numeric data axis

Code Examples

convenience init(
    attributedTitle: NSAttributedString,
    range: ClosedRange<Double>,
    gridlinePositions: [Double],
    valueDescriptionProvider: @escaping (Double) -> String
)

Source: https://developer.apple.com/documentation/accessibility/axnumericdataaxisdescriptor/init(attributedtitle:range:gridlinepositions:valuedescriptionprovider:)