Fix: text and button overlap on smaller devices in screen prompting to elevate key security

pull/1593/head
Hwee-Boon Yar 5 years ago
parent 9f17b9d0c1
commit 95f1af35c7
  1. 2
      AlphaWallet/Wallet/ViewControllers/ElevateWalletSecurityViewController.swift
  2. 4
      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,8 +51,12 @@ struct ElevateWalletSecurityViewModel {
}
var descriptionFont: UIFont {
if ScreenChecker().isNarrowScreen {
return Fonts.regular(size: 16)!
} else {
return Fonts.regular(size: 20)!
}
}
var cancelLockingButtonFont: UIFont {
return Fonts.regular(size: 20)!

Loading…
Cancel
Save