EnterpriseDS Documentation

Enumeration DSButton​Image​Location​Type

public enum DSButtonImageLocationType: 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)

button.imageLocation = .trailing
DSButtonImageLocationType DSButtonImageLocationType CaseIterable CaseIterable DSButtonImageLocationType->CaseIterable String String DSButtonImageLocationType->String

Conforms To

CaseIterable
String

Enumeration Cases

leading

case leading

Displays a button icon on the leading side of the text.

trailing

case trailing

Displays a button icon on the trailing side of the text.

Properties

name

public var name: String  

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