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.

Beta
protocol UIViewControllerRepresentable

A view that represents a UIKit view controller.

Beta
struct UIViewControllerRepresentableContext

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

Beta

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software