DHDeclarable

Declarative UIKit for iOS apps

View the Project on GitHub dan-hart/DHDeclarable

CLASS

DHDViewController

open class DHDViewController: UIViewController, DHDViewControlling

Properties

body

open var body: UIView

Override this property to set

verticalPadding

open var verticalPadding: CGFloat

Override this property to set

horizontalPadding

open var horizontalPadding: CGFloat

Override this property to set

titled

open var titled: String?

Override this property to set

renderingMode

open var renderingMode: DHDViewControllerContentRenderingMode

Override this property to set

backgroundColor

open var backgroundColor: UIColor?

Override this property to use a custom background color use this sparingly, as we would like to move towards dark mode

viewTag

public let viewTag = Int.random(in: Int.min ... Int.max)

Make sure to tag the root of .body with this value

Methods

init()

public init()

init(coder:)

loadView()

override public func loadView()

reloadView()

@discardableResult public func reloadView() -> UIView

traitCollectionDidChange(_:)

override public func traitCollectionDidChange(_ previousTraitCollection: UITraitCollection?)