Generic parameter 'T' could not be inferred
danho322 opened this issue · 8 comments
I've installed TransitionTreasury to my Swift project using Carthage, and am getting the Generic parameter 'T' could not be inferred error when trying to use tr_pushViewController. The viewController being pushed conforms to NavgationTransitionable correctly but the project still does not compile.
Are there any special instructions to use the library with Swift and Carthage?
After rerunning the Carthage update and closing/opening Xcode a few times, it worked. Issue with Xcode it looks like :). Thank you!
:)
I got the same error. I tried to reinstall library through CocoaPods a few times then I tried to drag sources to my project. Sadly I still didn't solve the problem.
The error is gone after installing TransitionAnimation extensions. Maybe I made a mistake in animation method implementation.
Be careful, the problem could be in the method parameter when you call the tr_pushViewController function.
Like below, use the prefix TRPushTransitionMethod.
Don't forget to add import TransitionAnimation
navigationController?.tr_pushViewController(vc, method: TRPushTransitionMethod.OMIN(keyView: self.view), statusBarStyle: TRStatusBarStyle.LightContent, completion: nil)
I got the same problem... any solution?