Moved initialization code into a -(void)setup method and called it from both initWithFrame: and initWithCoder: so you can setup a SmoothLineView visually in your storyboard or XIB editor.
The initWithCoder path doesn't set a background color default, since the XIB will already set a backgroundColor property for the view.
Moved initialization code into a -(void)setup method and called it from both initWithFrame: and initWithCoder: so you can setup a SmoothLineView visually in your storyboard or XIB editor.
The initWithCoder path doesn't set a background color default, since the XIB will already set a backgroundColor property for the view.