Skip to content

Commit

Permalink
Update parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
onmyway133 committed May 18, 2019
1 parent 8add77b commit c089a78
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Expand Up @@ -46,19 +46,19 @@ func allOn() -> Bool {
return [good, cheap, fast].filter({ $0.isOn }).count == 3
}

good.on.change {
good.on.change { _ in
if allOn() {
fast.setOn(false, animated: true)
}
}

cheap.on.change {
cheap.on.change { _ in
if allOn() {
good.setOn(false, animated: true)
}
}

fast.on.change {
fast.on.change { _ in
if allOn() {
cheap.setOn(false, animated: true)
}
Expand Down

0 comments on commit c089a78

Please sign in to comment.