Skip to content

Latest commit

 

History

History
37 lines (27 loc) · 856 Bytes

ConformanceLevel.md

File metadata and controls

37 lines (27 loc) · 856 Bytes

EXTENSION

ConformanceLevel

extension ConformanceLevel

Properties

text

public var text: String

The text representation of the conformance level.

Methods

init(contrastRatio:fontSize:isBoldFont:)

public init(contrastRatio: CGFloat, fontSize: CGFloat, isBoldFont: Bool)

Initializes a ConformanceLevel based on a given contrast ratio and font information used for the text.

  • Parameters:
    • contrastRatio: The contrast ratio of a text and its background.
    • fontSize: The font size of the text.
    • isBoldFont: Information regarding the font weight.

Parameters

Name Description
contrastRatio The contrast ratio of a text and its background.
fontSize The font size of the text.
isBoldFont Information regarding the font weight.