Skip to main content

SwiftUIViewControllerRepresentable

@available(iOS 13.0, *)
/// A concrete type that wraps a view conforming to `SwiftUIRepresentable` and enables using it in SwiftUI via `UIViewControllerRepresentable`
public struct SwiftUIViewControllerRepresentable<
ViewController: UIViewController &
SwiftUIRepresentable
>: UIViewControllerRepresentable

Inheritance

UIViewControllerRepresentable

Methods

makeUIViewController(context:)

public func makeUIViewController(context: Context) -> ViewController 

updateUIViewController(_:context:)

public func updateUIViewController(_ uiViewController: ViewController, context: Context) 

Did you find this page helpful?