Skip to content

Commit

Permalink
Fixed UISwitch
Browse files Browse the repository at this point in the history
  • Loading branch information
colemancda committed Nov 17, 2017
1 parent b965710 commit 499e6e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/Cacao/UISwitch.swift
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ open class UISwitch: UIControl {
/// Set the state of the switch to On or Off, optionally animating the transition.
///
/// - Note: Setting the switch to either position does not result in an action message being sent.
public func setOn(_ on: Bool, animated: Bool) {
public func setOn(_ newValue: Bool, animated: Bool) {

setOn(on, animated: animated)
setOn(newValue, tapped: false, animated: animated)
}

private func setOn(_ on: Bool, tapped: Bool, animated: Bool) {
Expand Down

0 comments on commit 499e6e8

Please sign in to comment.