2
0

Use visibility instead of gone so constraints are managed by stack view.

This commit is contained in:
Maarten Billemont 2020-07-11 10:48:19 -04:00
parent acbd2dc2cc
commit cfbf1f5cac
2 changed files with 3 additions and 3 deletions

@ -1 +1 @@
Subproject commit fbb8e6f94b295ee34a575ca9bdd0cc95bfe615a9 Subproject commit d5f7dd7eba18d70b6fec7aa81654113c9b6feda7

View File

@ -537,8 +537,8 @@
// UI // UI
//self.backgroundColor = mainSite.url? [UIColor greenColor]: [UIColor redColor]; //self.backgroundColor = mainSite.url? [UIColor greenColor]: [UIColor redColor];
self.upgradeButton.gone = !mainSite.requiresExplicitMigration && ![[MPiOSConfig get].allowDowngrade boolValue]; self.upgradeButton.visible = mainSite.requiresExplicitMigration || [[MPiOSConfig get].allowDowngrade boolValue];
self.answersButton.gone = ![[MPiOSAppDelegate get] isFeatureUnlocked:MPProductGenerateAnswers]; self.answersButton.visible = [[MPiOSAppDelegate get] isFeatureUnlocked:MPProductGenerateAnswers];
BOOL settingsMode = self.mode == MPPasswordCellModeSettings; BOOL settingsMode = self.mode == MPPasswordCellModeSettings;
self.loginNameContainer.visible = settingsMode || mainSite.loginGenerated || [mainSite.loginName length]; self.loginNameContainer.visible = settingsMode || mainSite.loginGenerated || [mainSite.loginName length];
self.modeButton.visible = !self.transientSite; self.modeButton.visible = !self.transientSite;