Type MethodMethodcustom
customProperties(from:dark:)
Returns the custom properties a theme defines for one colour scheme.
static func customProperties(
from settings: ThemeSettings .Root,
dark: Bool
) -> [(name: String, value: String)]Parameters
settingsThe theme settings.
darkWhether to use the dark values of light and dark pairs.
Return Value
The custom property names (including --) and values.
Discussion
The properties are listed section by section (badge, color, typography, spacing, then the remaining sections of the specification), each sorted by name. Names follow swift-docc-render: nested keys are joined with - and prefixed with --.