ExpandedTabBar icon indicating copy to clipboard operation
ExpandedTabBar copied to clipboard

Programmatic Navigation to hidden More Tab

Open undeaDD opened this issue 3 years ago • 0 comments

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 ^^

undeaDD avatar Jan 12 '23 18:01 undeaDD