   // MARK: Actions
 
   func readOnly(sender: UISwitch) {
-    if (sender.on) {
+    if sender.on {
       self.dataSource().disable()
     } else {
       self.dataSource().enable()

  }

  func validateButtonAction() {
    if (self.dataSource().isValid()) {
      UIAlertView(title: "Everything is valid, you get a 🍬!",
        message: nil,
        delegate: nil,

  override func viewDidLoad() {
    super.viewDidLoad()

    self.edgesForExtendedLayout = .None
    self.collectionView?.backgroundColor = UIColor(fromHex: "DAE2EA")
    self.collectionView?.dataSource = self.dataSource()
  }
