davdroman / Popsicle

Simple, extensible interpolation framework
MIT License
1.09k stars 105 forks source link

DRDynamicSlideShow gone? #12

Closed djclarkson closed 9 years ago

djclarkson commented 9 years ago

Hey there, I'm new to IOS so please forgive this likely very noob question.

I have an IOS project that was using DRDynamicSlideShow. When I go now to pod update I get an error saying:

warning: Could not find remote branch 1.0.1 to clone. fatal: Remote branch 1.0.1 not found in upstream origin

All links to that Pod took me to the Popsicle repo. So I tried adding Popsicle to the project instead but that doesn't work.

Once again sorry for noob question.

davdroman commented 9 years ago

Hey there David.

It's a not a noob question at all. I understand your confusion.

DRDynamicSlideShow has been splitted into two projects: Popsicle and DRPageScrollView. Popsicle carries the keyframing/interpolation logic and DRPageScrollView allows for a simple and easy page scroll view setup. Of course, you may use vanilla UIScrollView or any other UIScrollView subclass instead (which is basically the point of this separation).

About your problem, it's quite strange actually. You should be able to replace DRDynamicSlideShow's pod with Popsicle's by replacing this line from your Podfile:

pod 'DRDynamicSlideShow'

to this one:

pod 'Popsicle'

and running pod install or pod update as convenient.

If you're still having trouble, please tell me what error you're getting from CocoaPods.

Another solution I can think of right now is removing pod 'DRDynamicSlideShow' from your Podfile, running pod install to remove it from your project, and adding pod 'Popsicle' afterwards.

djclarkson commented 9 years ago

Thanks for quick reply.

So I tried removing DRDynamicSlideshow then pod install, then adding Popsicle. On build I get this:

Property ‘DRDynamicSlideShowdelegate’ not found on object of type ‘RMDateSelectionViewController'

Maybe an issue with RMDateSelectionViewController... checking.

davdroman commented 9 years ago

That's because Popsicle is a hole different thing than DRDynamicSlideShow. Please consider the new API and implement it as convenient for your project. I'd recommend implementing DRPageScrollView as well (check out the demo app for further detail on implementation).

djclarkson commented 9 years ago

I figured it was a whole different thing but then the suggestion you made above was to simply replace the Pods. Is there no way to keep the old repository available? Kind of sucks for projects to break like this and be forced to re-implement (I'm not experience enough to do so myself, so probably have to pay....).

davdroman commented 9 years ago

I'm really sorry, but there's no way around it. I should have deprecated the previous project instead of replacing it for this one. My mistake. If you still have the old library files, you can upload them to your own private repository and install them from there though. Or maybe you could install manually, since there won't be more updates for the library for CocoaPods to manage.

djclarkson commented 9 years ago

It's ok, I will see if I can find the old files.

davdroman commented 9 years ago

:+1:

djclarkson commented 9 years ago

Wow this is a hell of a lot more work to resolve than I thought. Do you have a copy of the old repository I can use? I have a few files but had trashed the old cloned directory.

davdroman commented 9 years ago

Unfortunately I don't, sorry.

I'm quite certain it shouldn't be hard at all to port your code to Popsicle+DRPageScrollView. It's quite the same thing as DRDynamicSlideShow except for the method names.

davdroman commented 9 years ago

Hi again @djclarkson.

How stupid from me not to think about this before: a lot of people have a forked version of the old repository, such as this one.