disclosure indicator alignment for M5StackViewController

This commit is contained in:
Johan Degraeve 2019-10-18 23:11:26 +02:00
parent 09349f6912
commit 7798930456
1 changed files with 6 additions and 4 deletions

View File

@ -453,17 +453,17 @@ extension M5StackViewController: UITableViewDataSource, UITableViewDelegate {
case .name:
cell.textLabel?.text = Texts_Common.name
cell.detailTextLabel?.text = m5StackAsNSObject?.name
cell.accessoryType = UITableViewCell.AccessoryType.none
cell.accessoryType = .none
case .address:
cell.textLabel?.text = Texts_M5StackView.address
cell.detailTextLabel?.text = m5StackAsNSObject?.address
cell.accessoryType = UITableViewCell.AccessoryType.disclosureIndicator
cell.accessoryType = .disclosureIndicator
case .blePassword:
cell.textLabel?.text = Texts_Common.password
cell.detailTextLabel?.text = m5StackAsNSObject?.blepassword
cell.accessoryType = UITableViewCell.AccessoryType.none
cell.accessoryType = .none
case .connectionStatus:
cell.textLabel?.text = Texts_M5StackView.status
@ -472,7 +472,7 @@ extension M5StackViewController: UITableViewDataSource, UITableViewDelegate {
case .userDefinedName:
cell.textLabel?.text = Texts_M5StackView.m5StackAlias
cell.detailTextLabel?.text = userDefinedNameTemporaryValue
cell.accessoryType = UITableViewCell.AccessoryType.disclosureIndicator
cell.accessoryType = .disclosureIndicator
case .textColor:
cell.textLabel?.text = Texts_SettingsView.m5StackTextColor
@ -486,6 +486,8 @@ extension M5StackViewController: UITableViewDataSource, UITableViewDelegate {
cell.detailTextLabel?.text = ConstantsM5Stack.defaultTextColor.description
}
}
cell.accessoryType = .disclosureIndicator
}