Merge pull request #1593 from AlphaWallet/fix-text-and-button-overlap-during-prompt-elevate-key-security-for-short-devices

Fix: text and button overlap on smaller devices in screen prompting to elevate key security
pull/1596/head
James Sangalli 5 years ago committed by GitHub
commit b158f7ec51
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      AlphaWallet/Wallet/ViewControllers/ElevateWalletSecurityViewController.swift
  2. 6
      AlphaWallet/Wallet/ViewModels/ElevateWalletSecurityViewModel.swift

@ -45,7 +45,7 @@ class ElevateWalletSecurityViewController: UIViewController {
subtitleLabel,
UIView.spacer(height: 40),
imageView,
UIView.spacer(height: 40),
UIView.spacer(height: ScreenChecker().isNarrowScreen ? 15 : 40),
descriptionLabel,
].asStackView(axis: .vertical)
stackView.translatesAutoresizingMaskIntoConstraints = false

@ -51,7 +51,11 @@ struct ElevateWalletSecurityViewModel {
}
var descriptionFont: UIFont {
return Fonts.regular(size: 20)!
if ScreenChecker().isNarrowScreen {
return Fonts.regular(size: 16)!
} else {
return Fonts.regular(size: 20)!
}
}
var cancelLockingButtonFont: UIFont {

Loading…
Cancel
Save