Skip to content

Instantly share code, notes, and snippets.

@headStyleColorRed
Created June 29, 2021 08:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save headStyleColorRed/3938240c99df1d9e9ed3a9231509be83 to your computer and use it in GitHub Desktop.
Save headStyleColorRed/3938240c99df1d9e9ed3a9231509be83 to your computer and use it in GitHub Desktop.
struct ControllerWrapper: UIViewControllerRepresentable {
typealias UIViewControllerType = <Your_Controller>
func makeUIViewController(context: UIViewControllerRepresentableContext<ControllerWrapper>) ->
ControllerWrapper.UIViewControllerType {
return <Your_Controller>()
}
func updateUIViewController(_ uiViewController: ControllerWrapper.UIViewControllerType,
context: UIViewControllerRepresentableContext<ControllerWrapper>) {
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment