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

How to accroding login API response type to switch front viewcontroller using SWRevealViewController #820

Open
KC-218 opened this issue Aug 26, 2020 · 0 comments

Comments

@KC-218
Copy link

KC-218 commented Aug 26, 2020

I have a question about SWRevealViewController.
I found the answer like using sw_custom.
My login viewcontroller and return a API response to let me know which is front viewcontroller.
I don't know how to use sw_custom because I use performSegue to push viewcontroller and it auto push to VC1.

self.performSegue(withIdentifier: "MainSegue", sender: nil)

If I want to accroding API response and push to VC2. How to do this?
And how to use sw_custom.
Thanks.

截圖 2020-08-24 10 37 19

截圖 2020-08-26 14 43 08

Here is my example project: https://github.com/Bruce9487/TestMenuBae/tree/master

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

1 participant