The minimum replay code will be:
var field: UITextField = UITextField()
let dict = [
"foo": Int(42),
"bar": field.text
]
The problem is the type UITextField.text:
Xcode6.4:
var text: String!
Xcode7.0:
public var text: String?
He changed from ImplicitlyUnwrappedOptionaltoOptional
,
[
String: Int,
String: Optional<String>
]
Optional<String> AnyObject. .
, .text:
var updatedTask = [
"description": self.descriptionTextfield.text!,
"title": self.titleTextfield.text!,
"priority": self.priorityTextfield.text!.uppercaseString,
"type": self.typeTextfield.text!.uppercaseString,
"dueDate": Int(date.timeIntervalSince1970 * 1000),
"privacy": self.privateSwitch.on ? "PRIVATE": "PUBLIC"
]