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
+20-20
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
-
openclassM13Checkbox:UIControl{
18
+
publicclassM13Checkbox:UIControl{
19
19
20
20
//----------------------------
21
21
// MARK: - Constants
@@ -258,20 +258,20 @@ open class M13Checkbox: UIControl {
258
258
//----------------------------
259
259
260
260
/// The object to return from `value` when the checkbox is checked.
261
-
openvarcheckedValue:Any?
261
+
publicvarcheckedValue:Any?
262
262
263
263
/// The object to return from `value` when the checkbox is unchecked.
264
-
openvaruncheckedValue:Any?
264
+
publicvaruncheckedValue:Any?
265
265
266
266
/// The object to return from `value` when the checkbox is mixed.
267
-
openvarmixedValue:Any?
267
+
publicvarmixedValue:Any?
268
268
269
269
/**
270
270
Returns one of the three "value" properties depending on the checkbox state.
271
271
- returns: The value coresponding to the checkbox state.
272
272
- 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 == ...
273
273
*/
274
-
openvarvalue:Any?{
274
+
publicvarvalue:Any?{
275
275
switch checkState {
276
276
case.unchecked:
277
277
return uncheckedValue
@@ -287,7 +287,7 @@ open class M13Checkbox: UIControl {
287
287
//----------------------------
288
288
289
289
/// The current state of the checkbox.
290
-
openvarcheckState:CheckState{
290
+
publicvarcheckState:CheckState{
291
291
get{
292
292
return manager.state
293
293
}
@@ -301,7 +301,7 @@ open class M13Checkbox: UIControl {
301
301
- parameter checkState: The new state of the checkbox.
302
302
- parameter animated: Whether or not to animate the change.
@@ -347,7 +347,7 @@ open class M13Checkbox: UIControl {
347
347
}
348
348
349
349
/// The type of animation to preform when changing from the unchecked state to any other state.
350
-
openvarstateChangeAnimation:Animation=.stroke {
350
+
publicvarstateChangeAnimation:Animation=.stroke {
351
351
didSet {
352
352
353
353
// Remove the sublayers
@@ -412,7 +412,7 @@ open class M13Checkbox: UIControl {
412
412
//----------------------------
413
413
414
414
/// 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