Skip to content
This repository was archived by the owner on Jun 25, 2021. It is now read-only.

Conversation

azamouchi
Copy link

Fixing issue #7

Only the view of the stack viewControllers is being added to the ScrollingStackController view, there is no refrence kept for the childViewController itself

So for example if we have our ScrollingStackContainer inside a UINavigationController, and it contains a tableView as one of it SubViewControllers, we can't access the navigationController to push a new viewController , this PR wil allow us to do the following

   // tableView delegate method
    func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
        let vc = NewViewController(nibName: "NewViewController", bundle: nil)
        self.parent?.navigationController?.pushViewController(vc, animated: true)
    }

Assuming that self here references the viewController that control our tableView

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

Successfully merging this pull request may close these issues.

1 participant