mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-08 18:05:32 +00:00
fix(ios): iOS 14 only - stuck settings toggles
This commit is contained in:
parent
3f4274fa63
commit
2e1b18b42f
1 changed files with 3 additions and 0 deletions
|
|
@ -161,6 +161,7 @@ open class SettingsViewController: UITableViewController {
|
|||
showBannerSwitch.addTarget(self, action: #selector(self.bannerSwitchValueChanged),
|
||||
for: .valueChanged)
|
||||
cell.addSubview(showBannerSwitch)
|
||||
cell.contentView.isUserInteractionEnabled = false
|
||||
|
||||
showBannerSwitch.rightAnchor.constraint(equalTo: cell.layoutMarginsGuide.rightAnchor).isActive = true
|
||||
showBannerSwitch.centerYAnchor.constraint(equalTo: cell.layoutMarginsGuide.centerYAnchor).isActive = true
|
||||
|
|
@ -175,6 +176,7 @@ open class SettingsViewController: UITableViewController {
|
|||
showAgainSwitch.addTarget(self, action: #selector(self.showGetStartedSwitchValueChanged),
|
||||
for: .valueChanged)
|
||||
cell.addSubview(showAgainSwitch)
|
||||
cell.contentView.isUserInteractionEnabled = false
|
||||
|
||||
showAgainSwitch.rightAnchor.constraint(equalTo: cell.layoutMarginsGuide.rightAnchor).isActive = true
|
||||
showAgainSwitch.centerYAnchor.constraint(equalTo: cell.layoutMarginsGuide.centerYAnchor).isActive = true
|
||||
|
|
@ -189,6 +191,7 @@ open class SettingsViewController: UITableViewController {
|
|||
enableReportingSwitch.addTarget(self, action: #selector(self.reportingSwitchValueChanged),
|
||||
for: .valueChanged)
|
||||
cell.addSubview(enableReportingSwitch)
|
||||
cell.contentView.isUserInteractionEnabled = false
|
||||
|
||||
enableReportingSwitch.rightAnchor.constraint(equalTo: cell.layoutMarginsGuide.rightAnchor).isActive = true
|
||||
enableReportingSwitch.centerYAnchor.constraint(equalTo: cell.layoutMarginsGuide.centerYAnchor).isActive = true
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue