mirror of
https://github.com/keymanapp/keyman.git
synced 2026-09-13 11:07:42 +00:00
fix(ios): also, the language-specific settings
This commit is contained in:
parent
c13c47b7df
commit
cfcabdb0f1
1 changed files with 4 additions and 0 deletions
|
|
@ -150,6 +150,8 @@ class LanguageSettingsViewController: UITableViewController {
|
|||
doPredictionsSwitch!.isOn = userDefaults.predictSettingForLanguage(languageID: self.language.id)
|
||||
doPredictionsSwitch!.addTarget(self, action: #selector(self.predictionSwitchValueChanged), for: .valueChanged)
|
||||
cell.addSubview(doPredictionsSwitch!)
|
||||
cell.contentView.isUserInteractionEnabled = false
|
||||
|
||||
if #available(iOSApplicationExtension 9.0, *) {
|
||||
doPredictionsSwitch!.rightAnchor.constraint(equalTo: cell.layoutMarginsGuide.rightAnchor).isActive = true
|
||||
doPredictionsSwitch!.centerYAnchor.constraint(equalTo: cell.layoutMarginsGuide.centerYAnchor).isActive = true
|
||||
|
|
@ -166,6 +168,8 @@ class LanguageSettingsViewController: UITableViewController {
|
|||
doCorrectionsSwitch!.isOn = userDefaults.correctSettingForLanguage(languageID: self.language.id)
|
||||
doCorrectionsSwitch!.addTarget(self, action: #selector(self.correctionSwitchValueChanged), for: .valueChanged)
|
||||
cell.addSubview(doCorrectionsSwitch!)
|
||||
cell.contentView.isUserInteractionEnabled = false
|
||||
|
||||
if #available(iOSApplicationExtension 9.0, *) {
|
||||
doCorrectionsSwitch!.rightAnchor.constraint(equalTo: cell.layoutMarginsGuide.rightAnchor).isActive = true
|
||||
doCorrectionsSwitch!.centerYAnchor.constraint(equalTo: cell.layoutMarginsGuide.centerYAnchor).isActive = true
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue