Skip to content

Commit

Permalink
Add default M13CheckboxController object to ConstantValues
Browse files Browse the repository at this point in the history
  • Loading branch information
andreaantonioni committed Jul 30, 2017
1 parent 4255167 commit 38c95be
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions M13Checkbox/ConstantValues.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,6 @@ struct ConstantValues {
static let defaultMarkType: M13Checkbox.MarkType = .checkmark
static let defaultBoxType: M13Checkbox.BoxType = .circle
static let defaultCheckState: M13Checkbox.CheckState = .unchecked
static let defaultController: M13CheckboxController = M13CheckboxStrokeController()

}
2 changes: 1 addition & 1 deletion Sources/M13Checkbox.swift
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ open class M13Checkbox: UIControl {

/// The manager that manages display and animations of the checkbox.
/// The default animation is a stroke.
fileprivate var controller: M13CheckboxController = M13CheckboxStrokeController()
fileprivate var controller: M13CheckboxController = ConstantValues.defaultController

//----------------------------
// MARK: - Initalization
Expand Down

0 comments on commit 38c95be

Please sign in to comment.