PaoloCuscela / Cards

Awesome iOS 11 appstore cards in swift 5.
MIT License
4.2k stars 274 forks source link

Delegates section to wiki #77

Open PetrGuan opened 6 years ago

PetrGuan commented 6 years ago

Also we need Delegates section! It's amazing.

kraj011 commented 5 years ago

Not sure if youre still interested, but its pretty easy to implement. At the top of your class, make sure it extends the CardDelegate class and set your card delegate to self (myCard.delegate = self). Then inside your class and outside of other classes, just type card and you'll see autofill come up with all of the delegate methods and they are all pretty self explanatory :D

PetrGuan commented 5 years ago

Not sure if youre still interested, but its pretty easy to implement. At the top of your class, make sure it extends the CardDelegate class and set your card delegate to self (myCard.delegate = self). Then inside your class and outside of other classes, just type card and you'll see autofill come up with all of the delegate methods and they are all pretty self explanatory :D

Thanks for the head up, it really helps. But I still think the Wiki part is very helpful.