TrackerButton

class TrackerButton : UIButton

Creates a button with rounded corners.

If the width and height are same, it is a circle.

By default a white background color is assigned.

  • Just call super() and sets background color as white

    Declaration

    Swift

    required init?(coder aDecoder: NSCoder)
  • Override to asigns the radius of the button to height/2

    Declaration

    Swift

    override func layoutSubviews()