You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Sources/M13Checkbox.swift
+22-22Lines changed: 22 additions & 22 deletions
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,7 @@ import UIKit
15
15
16
16
/// A customizable checkbox control for iOS.
17
17
@IBDesignable
18
-
publicclassM13Checkbox:UIControl{
18
+
openclassM13Checkbox:UIControl{
19
19
20
20
//----------------------------
21
21
// MARK: - Constants
@@ -262,20 +262,20 @@ public class M13Checkbox: UIControl {
262
262
//----------------------------
263
263
264
264
/// The object to return from `value` when the checkbox is checked.
265
-
publicvarcheckedValue:Any?
265
+
openvarcheckedValue:Any?
266
266
267
267
/// The object to return from `value` when the checkbox is unchecked.
268
-
publicvaruncheckedValue:Any?
268
+
openvaruncheckedValue:Any?
269
269
270
270
/// The object to return from `value` when the checkbox is mixed.
271
-
publicvarmixedValue:Any?
271
+
openvarmixedValue:Any?
272
272
273
273
/**
274
274
Returns one of the three "value" properties depending on the checkbox state.
275
275
- returns: The value coresponding to the checkbox state.
276
276
- note: This is a convenience method so that if one has a large group of checkboxes, it is not necessary to write: if (someCheckbox == thatCheckbox) { if (someCheckbox.checkState == ...
277
277
*/
278
-
publicvarvalue:Any?{
278
+
openvarvalue:Any?{
279
279
switch checkState {
280
280
case.unchecked:
281
281
return uncheckedValue
@@ -291,7 +291,7 @@ public class M13Checkbox: UIControl {
291
291
//----------------------------
292
292
293
293
/// The current state of the checkbox.
294
-
publicvarcheckState:CheckState{
294
+
openvarcheckState:CheckState{
295
295
get{
296
296
return controller.state
297
297
}
@@ -305,7 +305,7 @@ public class M13Checkbox: UIControl {
305
305
- parameter checkState: The new state of the checkbox.
306
306
- parameter animated: Whether or not to animate the change.
@@ -358,7 +358,7 @@ public class M13Checkbox: UIControl {
358
358
}
359
359
360
360
/// The type of animation to preform when changing from the unchecked state to any other state.
361
-
publicvarstateChangeAnimation:Animation=.stroke {
361
+
openvarstateChangeAnimation:Animation=.stroke {
362
362
didSet {
363
363
364
364
// Remove the sublayers
@@ -395,7 +395,7 @@ public class M13Checkbox: UIControl {
395
395
}
396
396
397
397
/// Whether or not to enable morphing between states.
398
-
@IBInspectablepublicvarenableMorphing:Bool{
398
+
@IBInspectableopenvarenableMorphing:Bool{
399
399
get{
400
400
return controller.enableMorphing
401
401
}
@@ -425,7 +425,7 @@ public class M13Checkbox: UIControl {
425
425
//----------------------------
426
426
427
427
/// The color of the checkbox's tint color when not in the unselected state. The tint color is is the main color used when not in the unselected state.
0 commit comments