Initialize with positional constants

suggest change
let mySwitch: UISwitch = {
    view.addSubview($0)
    $0.addTarget(self, action: "action", forControlEvents: .TouchUpInside)
    return $0
}(UISwitch())

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents