Skip to content

Commit

Permalink
Merge pull request #28 from igorkulman/master
Browse files Browse the repository at this point in the history
UIAppearance support for styles
  • Loading branch information
BeauNouvelle authored Oct 18, 2020
2 parents 9ee5990 + d551d2c commit 11ed049
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions checkbox/Checkbox.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public class Checkbox: UIControl {
// MARK: - Enums

/// Shape of the center checkmark that appears when `Checkbox.isChecked == true`.
public enum CheckmarkStyle: String {
@objc public enum CheckmarkStyle: String {
/// ■
case square
/// ●
Expand All @@ -28,7 +28,8 @@ public class Checkbox: UIControl {
/// Shape of the outside box containing the checkmarks contents.
///
/// Used as a visual indication of where the user can tap.
public enum BorderStyle: String {

@objc public enum BorderStyle: String {
/// ▢
case square
/// ◯
Expand All @@ -40,7 +41,7 @@ public class Checkbox: UIControl {
/// Shape of the center checkmark that appears when `Checkbox.isChecked == true`.
///
/// **Default:** `CheckmarkStyle.square`
public var checkmarkStyle: CheckmarkStyle = .square
@objc dynamic public var checkmarkStyle: CheckmarkStyle = .square
@IBInspectable private var checkmarkStyleIB: String {
set {
checkmarkStyle = CheckmarkStyle(rawValue: newValue) ?? .square
Expand All @@ -55,7 +56,7 @@ public class Checkbox: UIControl {
/// Used as a visual indication of where the user can tap.
///
/// **Default:** `BorderStyle.square`
public var borderStyle: BorderStyle = .square
@objc dynamic public var borderStyle: BorderStyle = .square
@IBInspectable private var borderStyleIB: String {
set {
borderStyle = BorderStyle(rawValue: newValue) ?? .square
Expand Down

0 comments on commit 11ed049

Please sign in to comment.