Animate "AdditionField" struct to avoid usage of tuple "(String, String)"

This commit is contained in:
Danny Moesch 2018-05-05 20:05:03 +02:00 committed by Bob Sun
parent 1890e77bd2
commit b7a0cbaef6
2 changed files with 29 additions and 22 deletions

View file

@ -278,8 +278,8 @@ class PasswordDetailTableViewController: UITableViewController, UIGestureRecogni
let filteredAdditionKeys = password.getFilteredAdditions()
if filteredAdditionKeys.count > 0 {
section = TableSection(type: .addition, header: "additions")
filteredAdditionKeys.forEach({ (key: String, value: String) in
section.item.append(TableCell(title: key, content: value))
filteredAdditionKeys.forEach({ field in
section.item.append(TableCell(title: field.title, content: field.content))
})
tableData.append(section)
}