MimiCheckbox

@MainActor
open class MimiCheckbox : MimiControl

Simple square checkbox that can be used to toggle boolean values.

  • Primary tint color of the checkbox.

    This styles the filled background of the checkbox.

    Declaration

    Swift

    @MainActor
    open override var tintColor: UIColor! { get set }
  • Primary tint color to use when highlighted.

    This styles the filled background of the checkbox when it is highlighted.

    Declaration

    Swift

    @MainActor
    open var highlightedTintColor: UIColor! { get set }
  • Tint color for the checkbox when unchecked.

    This applies to the stroke around the checkbox when it is not checked.

    Declaration

    Swift

    @MainActor
    open var uncheckedTintColor: UIColor! { get set }
  • Tint color for the checkbox when unchecked and highlighted.

    This applies to the stroke around the checkbox when it is not checked when highlighted.

    Declaration

    Swift

    @MainActor
    open var uncheckedHighlightedTintColor: UIColor! { get set }
  • Whether the checkbox is currently checked.

    Declaration

    Swift

    @MainActor
    open var isChecked: Bool { get }
  • Declaration

    Swift

    @MainActor
    open override func construct(in view: UIView)
  • Update the checked state of the checkbox.

    Declaration

    Swift

    @MainActor
    open func setChecked(_ isChecked: Bool,
                         animated: Bool)
    Parameters
    isChecked

    Whether the box should be checked.

    animated

    Whether to animate the transition.