PaoloCuscela / Cards

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

Question: How to link the card's Background Image as an outlet to access it ? #105

Closed h-elbeheiry closed 5 years ago

h-elbeheiry commented 5 years ago

Hi, I wonder If I added my card as a design for .XIB file of my UICollectionView Cell, I want to add an outlet for the background image, Text or button etc, is that possible ? and if it's not, is there a right way to add this card as a cell in collection view while still be able to dynamically change each one with code ?

Thanks. Hope someone respond soon, I'm really interested in the awesome card design.

PaoloCuscela commented 5 years ago

Nope, you can't add individual elements of a card view as an outlet, but you can add the card itself as an iboutlet and then access to the card's elements within it. If you use customized classes for the collection view cells you can set the card in there and then change labels, images, etc whenever you want :)