modocache / MDCSwipeToChoose

Swipe to "like" or "dislike" any view, just like Tinder.app. Build a flashcard app, a photo viewer, and more, in minutes, not hours!
MIT License
2.55k stars 421 forks source link

Change Card border width #82

Open confile opened 9 years ago

confile commented 9 years ago

Is it possible to change card border width and color?

goelv commented 9 years ago

Yes.

https://github.com/modocache/MDCSwipeToChoose/blob/master/MDCSwipeToChoose/Public/Views/MDCSwipeToChooseView.m#L60

confile commented 9 years ago

This is an internal method. How do I set borderWidth externally?

Mrostgaard commented 8 years ago

Hey Confile!

In your MDCSwipeToChooseView subclass' initWithFrame method simply put: self.layer.borderWidth = 4.0f;

Would imagine you could do the same with color.

(I reckong you might have figured this one out by now but other people might need it)