elongation-preview icon indicating copy to clipboard operation
elongation-preview copied to clipboard

Does It work With Navigation Controller?

Open Tarektouati opened this issue 7 years ago • 9 comments

Hey like your work ! Just does it with Navigation Controller? because can't get it working !

Thanks

Tarektouati avatar Jun 13 '17 21:06 Tarektouati

Hey @Tarektouati! How are you? What is your error?

hoffsilva avatar Jun 21 '17 12:06 hoffsilva

I cant get it working with Tabbar, I believe it is a similar error with Tarektouati. My error message: Can't get ElongationViewController from UINavigationController nor from context's viewController itself.

michaeldai1006 avatar Jul 07 '17 00:07 michaeldai1006

Oh I actually just get this problem solved! Since the ElongationViewController is embedded into NavigationViewController or TabBarViewController, ElonggationTransition class's root method cant get access to the ElongationViewController. In my situation, I implemented UITabBar, I manually returned the ElongationViewController: let tabbarController = UIApplication.shared.keyWindow?.rootViewController as! UITabBarController return tabbarController.viewControllers![1] as! ElongationViewController

michaeldai1006 avatar Jul 07 '17 01:07 michaeldai1006

@Tarektouati i did the same thing in my app. ;)

hoffsilva avatar Jul 07 '17 01:07 hoffsilva

@TDClash Can you tell where should i manually edit your code?? I want to use elongation preview with tabbar but could not solve it

WrathChaos avatar Nov 13 '17 16:11 WrathChaos

I'll look on this issue soon, was busy on a project. Sorry.

Actually, there are closed issue #3 just like this one. Maybe it'll help someone, but here we need some refactoring.

av0c0der avatar Nov 14 '17 15:11 av0c0der

@Jauzee Any on going process about this issue? I really need a solution from you :)

WrathChaos avatar Nov 28 '17 07:11 WrathChaos

@WrathChaos actually we have pushed 1.1.0 version with fix for UITabBarController, but currently I can't push Pod update because I can't receive authentication email from @Cocoapods

Please checkout the repo manually and check how it works now.

If your issue wasn't fixed, please give me more details about your screens flow.

av0c0der avatar Nov 28 '17 10:11 av0c0der

Come avete risolto? Mi aiutate per favore. Ho inserito la libreria nel mio progetto ma mi dice Can't get ElongationViewController from UINavigationController nor from context's viewController itself. Grazie da Stefania

Stefania66 avatar Apr 18 '18 17:04 Stefania66