Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SuperVillainViewController example #8

Open
avi-kik opened this issue Jun 12, 2019 · 2 comments
Open

SuperVillainViewController example #8

avi-kik opened this issue Jun 12, 2019 · 2 comments

Comments

@avi-kik
Copy link

avi-kik commented Jun 12, 2019

The example does not seem correct. At no point are you instantiating a view controller, as the line

let vc = SuperVillainViewController()

is just creating an instance of the enclosing struct.

@Sadmansamee
Copy link
Collaborator

Sadmansamee commented Jun 12, 2019

@avi-kik
Copy link
Author

avi-kik commented Jun 12, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants