Modernize swift code, fix a few visualization bugs

This commit is contained in:
Charles Magahern
2016-07-06 22:11:48 -07:00
parent aac8320058
commit 2f5c807dc6
4 changed files with 46 additions and 15 deletions
@@ -138,7 +138,7 @@ class MainViewController: UIViewController, SwitchesViewControllerDelegate {
var activatedDevicesCount = 0
for device in self.devices {
if (device.state == .On) {
++activatedDevicesCount
activatedDevicesCount += 1
}
}