Use visibility instead of gone so constraints are managed by stack view.
This commit is contained in:
parent
acbd2dc2cc
commit
cfbf1f5cac
2
platform-darwin/External/Pearl
vendored
2
platform-darwin/External/Pearl
vendored
@ -1 +1 @@
|
|||||||
Subproject commit fbb8e6f94b295ee34a575ca9bdd0cc95bfe615a9
|
Subproject commit d5f7dd7eba18d70b6fec7aa81654113c9b6feda7
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user