DHDeclarable

Declarative UIKit for iOS apps

View the Project on GitHub dan-hart/DHDeclarable

STRUCT

UIViewController.Preview

struct Preview: UIViewRepresentable

Methods

makeUIView(context:)

public func makeUIView(context _: Context) -> UIView

Parameters

Name Description
context A context structure containing information about the current state of the system.

updateUIView(_:context:)

public func updateUIView(_: UIView, context _: Context)

Parameters

Name Description
uiView Your custom view object.
context A context structure containing information about the current state of the system.