EnterpriseDS Documentation

Enumeration DSButton​Rendering​Type

public enum DSButtonRenderingType: String, CaseIterable  

A type that defines the rendering font that a DSButton control should use.

A rendering type, when set, will affect the title and background color of the DSButton based on its state. It can be changed at any time and will reflect accurately.

let button = DSButton(renderingType: .primary)
DSButtonRenderingType DSButtonRenderingType CaseIterable CaseIterable DSButtonRenderingType->CaseIterable String String DSButtonRenderingType->String

Conforms To

CaseIterable
String

Enumeration Cases

primary

case primary

A solid, primary-color button.

secondary

case secondary

A more subdued, primary-bordered button.

tertiary

case tertiary

A clear, floating button.

anatomy​Primary

case anatomyPrimary

A bold look.

anatomy​Default

case anatomyDefault

A neutral look.

anatomy​Tertiary

case anatomyTertiary

A borderless look.

Properties

all​Enterprise​Cases

public static var allEnterpriseCases: [DSButtonRenderingType]  

all​Anatomy​Cases

public static var allAnatomyCases: [DSButtonRenderingType]  

name

public var name: String  

Returns an English name of the rendering font. Useful mostly for debugging.