Open avi-kik opened 5 years ago
Check https://developer.apple.com/tutorials/swiftui/interfacing-with-uikit and https://dev.to/kevinmaarek/working-with-your-uiviewcontroller-and-swiftui-2917
and this is how it works :) will close this issue.
The tutorial makes my point for me. In it, PageViewController
is a struct, and it creates a UIPageViewController
. In your example, SuperVillainViewController
is being used as both the struct and the view controller type.
The example does not seem correct. At no point are you instantiating a view controller, as the line
is just creating an instance of the enclosing struct.