Changes three things:
- (void) drawRect:(CGRect)rect
- (void) setHighlighted:(BOOL)highlighted
Initialisation of layers now happens in - (id) initWithCoder:(NSCoder *)decoder, which is called after deserialization from a xib/storyboard. If you want to create the CBLayer in code another initialiser has to be added.
- (id) initWithCoder:(NSCoder *)decoder
Layer creating is kept intact and exactly the same as the original file.
Rewrote CALayer based implementation. Does not use -(void)drawRect: a…
…nymore. Also removed custom event handling in favor of -(void)setHighlighted:
Removed unused tapped property
Updated readme file