JJCircleView

@objc
@IBDesignable
public class JJCircleView : UIView

A colored circle with an highlighted state

  • The color of the circle.

    Declaration

    Swift

    @IBInspectable
    public dynamic var color: UIColor { get set }
  • The color of the circle when highlighted. Default is nil.

    Declaration

    Swift

    @IBInspectable
    public dynamic var highlightedColor: UIColor? { get set }
  • A Boolean value indicating whether the circle view draws a highlight. Default is false.

    Declaration

    Swift

    @objc
    public var isHighlighted: Bool { get set }
  • Returns an object initialized from data in a given unarchiver.

    Declaration

    Swift

    public required init?(coder aDecoder: NSCoder)

    Parameters

    aDecoder

    An unarchiver object.

    Return Value

    self, initialized using the data in decoder.

  • Draws the receiver’s image within the passed-in rectangle Overrides draw(rect: CGRect) from UIView.

    Declaration

    Swift

    override public func draw(_: CGRect)