Search code examples
ioscomponentkit

How do you configure a Component's underlying layer?


For example: how might you set the border width for a CKButtonComponent? When using views directly, you would specify it like this:

view.layer.borderWidth = xx


Solution

  • Use CKComponentViewAttribute::LayerAttribute(@selector(setBorderWidth:)).