DianQK / TransitionTreasury

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

TRPresentTransitionMethod is not recognized as a type #18

Open cytryn opened 8 years ago

cytryn commented 8 years ago

Just followed you basic readme file with the example and could not recognize TRPresentTransitionMethod

So I created it myself but anyway couldn't get to work.

Also your demo project just don't go straight to the point, its very confusing...

tr_presentViewController(vc, method: TRPresentTransitionMethod.Fade, completion: {
            print("Present finished.")
        })
DianQK commented 8 years ago

Maybe you need perform

$ pod install
cytryn commented 8 years ago

It has been done.

Problem was after that.

thongtran715 commented 8 years ago

I have the same issue too. Any solutions? I also did pod install

cytryn commented 8 years ago

@thongtran715 I ended up creating my own transition. Better than using a pod anyway... :P

donirn commented 8 years ago

Same issue here. Use of unresolved identifier 'TRPresentTransitionMethod'

donirn commented 8 years ago

Problem solved by adding TransitionAnimation pod 'TransitionAnimation' and import TransitionAnimation before using TRPresentTransitionMethod import TransitionAnimation

lfarah commented 8 years ago

@DianQK please add TransitionAnimation on the podspec

DianQK commented 8 years ago

Hi~ @lfarah I have add TransitionAnimation .

https://github.com/DianQK/TransitionTreasury/blob/master/TransitionAnimation.podspec

https://cocoapods.org/?q=TransitionAnimation

lfarah commented 8 years ago

As you can see HERE, you can add a dependency on your podcast so people don't have to install 2 libraries: s.dependency '1PasswordExtension', '1.8.2'

DianQK commented 8 years ago

@lfarah I think we often just need TransitionTreasury which help us manage custom transition animation easy. TransitionAnimation is not a common animation, when we build a app, we often have own animation. So I separated TransitionAnimation.