MDCSwipeToChoose icon indicating copy to clipboard operation
MDCSwipeToChoose copied to clipboard

Change Card border width

Open confile opened this issue 10 years ago • 3 comments

Is it possible to change card border width and color?

confile avatar May 11 '15 21:05 confile

Yes.

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

goelv avatar May 13 '15 11:05 goelv

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

confile avatar May 13 '15 11:05 confile

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)

Mrostgaard avatar Apr 12 '16 21:04 Mrostgaard