GRDBFetchedRecordsControllerDemo WIP

This commit is contained in:
Gwendal Roué committed 2016-03-26 17:49:47 +01:00
1 parent 05eb7b35f8
commit 00e49e76be
1 file changed
+3 -1
@@ -18,7 +18,9 @@ class PersonEditionViewController: UITableViewController {
@IBOutlet private weak var scoreTextField: UITextField!
func applyChanges() {
person.name = nameTextField.text ?? ""
if let name = nameTextField.text where !name.isEmpty {
person.name = name
}
person.score = scoreTextField.text.flatMap { Int($0) } ?? 0
}