andreamazz / BubbleTransition

A custom modal transition that presents and dismiss a controller with an expanding bubble effect.
MIT License
3.32k stars 250 forks source link

Objective-C instructions #5

Closed magnett closed 9 years ago

magnett commented 9 years ago

Hi! Your work is amazing however, i am not into Swift. I imported your file, created the necessary bridging header and everything compiles, however i don't know how to "activate" the transition and use the delegates. Could you please provide an objective-c example? Thanks in advance.

andreamazz commented 9 years ago

Hi @magnett Yeah, something's off when importing the pod in an Objective-C project. The enum with the transition mode is not translated in the header file. Pretty weird, I'll have to investigate.

magnett commented 9 years ago

I also had that problem so i didn't use cocoapods, i just imported the BubbleTransition.swift

andreamazz commented 9 years ago

And you can access the transitionMode property and the BubbleTransitionMode enum?

magnett commented 9 years ago

I don't know how to that (even if possible) !

andreamazz commented 9 years ago

Ok, I forgot to annotate the enum with @objc. Pull the latest version of the code. Here's a gist with the Objective-C implementation: https://gist.github.com/andreamazz/9b0d6c7db065555ec0d7

andreamazz commented 9 years ago

This might help too: http://d.pr/f/1ilaz