Generic Structure

UIViewRepresentableContext

The context in which updates to an associated UIKit view take place.

Declaration

struct UIViewRepresentableContext<Representable> where Representable : UIViewRepresentable

Topics

Instance Properties

let coordinator: Representable.Coordinator

The view’s associated coordinator.

var environment: EnvironmentValues

The current environment.

var transaction: Transaction

The current transaction.

See Also

UIKit Hosting

protocol UIViewRepresentable

A view that represents a UIKit view.

protocol UIViewControllerRepresentable

A view that represents a UIKit view controller.

struct UIViewControllerRepresentableContext

The context in which updates to an associated UIKit view controller take place.