PaoloCuscela / Cards

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

Questions about cards #46

Closed ghost closed 6 years ago

ghost commented 6 years ago

Hi Paolo, I have three questions for you. 1. Is it possible to hide the "VIEW" button on the card in this release of Cards? 2. Is it possibile show the card content inside a frame with each corner rounded (not just the upper corners)? 3. Is it possible hide the X button inside the card content view? Is there the possibility to add a custom way to dismiss the card content? Thanks

PaoloCuscela commented 6 years ago
  1. Actually you can't, but in the next release you can hide it setting the button text to nil 2-3 No but you can edit the DetailViewController class
PaoloCuscela commented 6 years ago

Reopen if you need help 👍

ghost commented 6 years ago

Thanks for the answer. I have a problem with the button: if I set: card.buttonText = nil xCode says that "nil cannot be assigned to type String". Where I'm wrong?

multision commented 6 years ago

"but in the next release you can hide it setting the button text to nil"

We'll have to wait for the next upcoming update.

ghost commented 6 years ago

If you look at the insight section there is a "Card XI Update" published a day ago and in the description there is the reference to the function that I'm looking for, so I thought that the function has been implemented

multision commented 6 years ago

Ahh, sorry about that.

I had to manually hide the button inside the code. I used this code and put it in the CardHighlight.swift like this:

actionBtn.isHidden = true

But now it doesn't seem to work. I'll get back to you if I find a workaround.