bradhowes/Checkbox
Embarrassingly simple UIControl with binary state that appears as a garden-variety checkbox.
Configuration
isChecked-- the current value of the control.borderLineWidth-- the line width of the border that is drawn around the view's frameborderShape-- the border to render. Currently supports two shapes: square and circleuncheckedBorderColor-- the color of the border when the control is uncheckedcheckedBorderColor-- the color of the border when the control is checkedcheckShape-- the checked indicator to render. Support 4 shapes: square, circle, check, and crosscheckLineWidth-- the line width of the check and cross shapescheckInserts-- the amount to reduce the border frame before being used for the checked shape frame
NOTE: the color of the checked shape comes from the UIView tintColor value.
Package Metadata
Repository: bradhowes/Checkbox
Stars: 2
Forks: 0
Open issues: 0
Default branch: main
Primary language: swift
License: MIT
Topics: ios, swift-package-manager, swift5, ui-components, uicontrol
README: README.md