DianQK / TransitionTreasury

Easier way to push your viewController.
https://transitiontreasury.com
MIT License
2.09k stars 158 forks source link

Generic parameter T ? #40

Open midgard opened 7 years ago

midgard commented 7 years ago

My code is here:

let MainStoryBoard = UIStoryboard(name: "Main", bundle: nil);
let ForgotPasswordVC = MainStoryBoard.instantiateViewController(withIdentifier: "ForgotPasswordVC");
navigationController?.tr_pushViewController(ForgotPasswordVC, method: TRPushTransitionMethod.page);`

I'm getting this error:

Generic parameter 'T' could not be inferred
amcuserguy commented 7 years ago

up

manhcuong27 commented 7 years ago

You must add NavgationTransitionable to second view controller

QiProject commented 6 years ago

hi i think the issue is not just only add NavgationTransitionable, i had to do pod 'TransitionAnimation', '~> 5.0' and import TransitionAnimation in the FirstViewController this works for me, hope it helps you.