protocol MyDelegate: class { // ... } class MyViewController: UIViewController { weak var delegate: MyDelegate? }