Skip to content

prohibited_interface_builder

Ian Applebaum edited this page Jun 13, 2020 · 1 revision

Prohibited Interface Builder

Creating views using Interface Builder should be avoided.

  • Identifier: prohibited_interface_builder
  • Enabled by default: Disabled
  • Supports autocorrection: No
  • Kind: lint
  • Analyzer rule: No
  • Minimum Swift compiler version: 3.0.0
  • Default configuration: warning

Non Triggering Examples

class ViewController: UIViewController {
    var label: UILabel!
}
class ViewController: UIViewController {
    @objc func buttonTapped(_ sender: UIButton) {}
}

Triggering Examples

class ViewController: UIViewController {
    @IBOutlet var label: UILabel!
}
class ViewController: UIViewController {
    @IBAction func buttonTapped(_ sender: UIButton) {}
}
Clone this wiki locally