Swift: UIView.translatesAutoresizingMaskIntoConstraints should be a property

Originator:brent
Number:rdar://17356472 Date Originated:18-Jun-2014 12:45 AM
Status:Duplicate/15540890 Resolved:
Product:Developer Tools Product Version:Xcode6-Beta (6A215l)
Classification:UI/Usability Reproducible:Always
 
Summary:
In Swift, UIView.translatesAutoresizingMaskIntoConstraints() and UIView.setTranslatesAutoresizingMaskIntoConstraints(Bool) are methods. They should be a single property.

Steps to Reproduce:

1. Create a UIView in Swift:

    let myView = UIView(frame: CGRectZero)

2. Try to turn off its autoresizing mask:

    myView.translatesAutoresizingMaskIntoConstraints = false

Expected Results:
The code compiles and runs properly.

Actual Results:
The code fails to compile because this is a method, not a property.

Notes:
N/A

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!