Fix UI issue
Dynamic type in Settings view in storyboard does not work. Enable dynamic font manually in source code.
This commit is contained in:
parent
b9edcea214
commit
bcf7f5fcca
1 changed files with 7 additions and 2 deletions
|
|
@ -153,13 +153,18 @@ class SettingsTableViewController: UITableViewController, UITabBarControllerDele
|
|||
}
|
||||
|
||||
override func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
|
||||
if tableView.cellForRow(at: indexPath) == passcodeTableViewCell {
|
||||
let cell = tableView.cellForRow(at: indexPath)
|
||||
cell?.textLabel?.font = UIFont.preferredFont(forTextStyle: .body)
|
||||
cell?.textLabel?.adjustsFontForContentSizeCategory = true
|
||||
cell?.detailTextLabel?.adjustsFontForContentSizeCategory = true
|
||||
|
||||
if cell == passcodeTableViewCell {
|
||||
if passcodeLock.hasPasscode {
|
||||
showPasscodeActionSheet()
|
||||
} else {
|
||||
setPasscodeLock()
|
||||
}
|
||||
} else if tableView.cellForRow(at: indexPath) == pgpKeyTableViewCell {
|
||||
} else if cell == pgpKeyTableViewCell {
|
||||
showPGPKeyActionSheet()
|
||||
}
|
||||
tableView.deselectRow(at: indexPath, animated: true)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue