VGParallaxHeader icon indicating copy to clipboard operation
VGParallaxHeader copied to clipboard

Support for Swift projects

Open cupofjoakim opened this issue 11 years ago • 6 comments

The name given to the files breaks at import to Swift projects. Since the Import is no longer held as a string with quotes, the plus symbol in "UIScrollView+VGParallaxHeader" makes the compiler try to add them together, which isn't really what we want right?

cupofjoakim avatar Oct 27 '14 15:10 cupofjoakim

I know its not so much releated but have a look at my answer here https://github.com/stoprocent/VGParallaxHeader/issues/2 and expect update very soon.

stoprocent avatar Oct 28 '14 08:10 stoprocent

I'm able to use BGParallaxHeader in Swift projects by adding the following line to the Bridging header:

#import "UIScrollView+VGParallaxHeader.h"

Please read more about the Bridging-Header here.

Jeehut avatar Nov 25 '14 02:11 Jeehut

Is there a swift example?

vin-the-dev avatar Nov 15 '15 18:11 vin-the-dev

I will be redoing ParallaxHeader for Swift 2 and dropping this repo so stay tuned.

stoprocent avatar Nov 15 '15 22:11 stoprocent

Thanks @stoprocent

I am currently using this one for now, thanks for this great lib :+1:

vin-the-dev avatar Nov 16 '15 10:11 vin-the-dev

When will you be releasing the swift version of this? Or a swift example

nevinjethmalani avatar May 31 '16 18:05 nevinjethmalani