JoniVR / VerticalCardSwiper

A marriage between the Shazam Discover UI and Tinder, built with UICollectionView in Swift.
MIT License
1.4k stars 101 forks source link

Programmatic Implementation #15

Closed mavieth closed 6 years ago

mavieth commented 6 years ago

I have tried a few different methods, but do you have an entirely programmatic to load (and lazy load) and cardSwipe view controller?

Rather than

@IBOutlet var cardSwiper: VerticalCardSwiper!

It would be something like

var cardSwiper: VerticalCardSwiper = VerticalCardSwiper()

Thanks!

JoniVR commented 6 years ago

Hi @mavieth

The README.md file doesn't use an IBOutlet, so I would recommend checking that out (especially the Usage section). It should just work like that. The VerticalCardSwiper is a subclass of a UIView so you can treat it exactly like any other view when instantiating it. Let me know if you experience any further issues with this.

Kind regards, Joni

edit: Closing this for now, feel free to reopen.