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

Programmatic Navigation to hidden More Tab #20

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

undeaDD
Copy link
Contributor

@undeaDD undeaDD commented Jan 12, 2023

I needed to navigate to a hidden viewcontroller inside more view programmatically.

Had to change visibility of the moreViewControllers variable to public and create a public wrapper function of the itemTapped function.

With these changes i could now navigate programmatically like this from anywhere to any hidden moreTab via index :
changeViewController(moreViewControllers![index])

i thought some other users might need this functionality aswell ^^
anyways thanks for the good work

undeaDD


PS:

Beware my solution is hacky and force unwrap should not be used ... just for easy understanding ^^
maybe introduce a helper function that doesnt need moreViewControllers to be public ?
thats left for you to figure out though ^^

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

Successfully merging this pull request may close these issues.

2 participants