DHDeclarable

Declarative UIKit for iOS apps

View the Project on GitHub dan-hart/DHDeclarable

EXTENSION

DHDView

public extension DHDView

Properties

stringRepresentation

public var stringRepresentation: String

Methods

divider(_:)

static func divider(_ color: UIColor) -> DHDView

create a horizontal line of a specified color

Parameters

Name Description
color UIColor

spacer(vertical:)

@discardableResult static func spacer(vertical height: CGFloat) -> DHDView

create a spacer of a specific size

Parameters

Name Description
height .

spacer(horizontal:)

@discardableResult static func spacer(horizontal width: CGFloat) -> DHDView

create a spacer of a specific size

Parameters

Name Description
width .