ScrollingStackContainer icon indicating copy to clipboard operation
ScrollingStackContainer copied to clipboard

push to other view controllers dose not work

Open ShimaDarya opened this issue 6 years ago • 1 comments

ShimaDarya avatar Jul 21 '18 06:07 ShimaDarya

Yep , that's because only the view of the child ViewControllers is being added to the ScrollingStack,

https://github.com/malcommac/ScrollingStackContainer/blob/593b2890d54d8f6cd01b6235fab811094c74b662/Sources/ScrollingStackContainer/ScrollingStackController.swift#L206

the ViewControllers need to bed added as childViewControllers in ScrollingStackController and then you we can use the following to push other view controllers form any childViewController

self.parent?.navigationController?.pushViewController(vc, animated: true)

Will try to make a PR to fix this.

azamouchi avatar Sep 15 '19 23:09 azamouchi