DHDeclarable

Declarative UIKit for iOS apps

View the Project on GitHub dan-hart/DHDeclarable

CLASS

DHDLabel

open class DHDLabel: UILabel

Connivence object for UILabel

Methods

init(font:textColor:alignment:text:lineLimit:adjustsFontForContentSizeCategory:)

public convenience init(font: UIFont?,
                        textColor: UIColor?,
                        alignment: NSTextAlignment?,
                        text: String?,
                        lineLimit: Int?,
                        adjustsFontForContentSizeCategory: Bool?)

init(_:font:)

public convenience init(_ text: String?,
                        font: UIFont? = UIFont.preferredFont(forTextStyle: .body))

Create a DHDLabel with a font and some text

Parameters

Name Description
text a string of text
font the UIFont of the label

init(_:)

public convenience init(_ text: String?)

Create a DHDLabel with some text

Parameters

Name Description
text a string of text