diff --git a/DashWallet/Sources/UI/Payment Controller/Enter Amount/ProvideAmountViewController.swift b/DashWallet/Sources/UI/Payment Controller/Enter Amount/ProvideAmountViewController.swift index 25e169044..406fdf659 100644 --- a/DashWallet/Sources/UI/Payment Controller/Enter Amount/ProvideAmountViewController.swift +++ b/DashWallet/Sources/UI/Payment Controller/Enter Amount/ProvideAmountViewController.swift @@ -69,7 +69,7 @@ final class ProvideAmountViewController: SendAmountViewController { let stackView = UIStackView() stackView.axis = .vertical - stackView.spacing = 26 + stackView.spacing = UIDevice.isIphone5OrLess ? 10 : 26 stackView.translatesAutoresizingMaskIntoConstraints = false contentView.addSubview(stackView) @@ -107,10 +107,10 @@ final class ProvideAmountViewController: SendAmountViewController { stackView.addArrangedSubview(amountView) NSLayoutConstraint.activate([ - stackView.topAnchor.constraint(equalTo: contentView.topAnchor, constant: 10), + stackView.topAnchor.constraint(equalTo: contentView.topAnchor, constant: UIDevice.isIphone5OrLess ? 0 : 10), stackView.leadingAnchor.constraint(equalTo: contentView.layoutMarginsGuide.leadingAnchor), stackView.trailingAnchor.constraint(equalTo: contentView.layoutMarginsGuide.trailingAnchor), - swiftUIController.view.heightAnchor.constraint(equalToConstant: 100) + swiftUIController.view.heightAnchor.constraint(equalToConstant: UIDevice.isIphone5OrLess ? 84 : 100) ]) } diff --git a/DashWallet/Sources/UI/Views/SharedViews/Keyboard/NumberKeyboard.swift b/DashWallet/Sources/UI/Views/SharedViews/Keyboard/NumberKeyboard.swift index ecd09e487..69d42c09b 100644 --- a/DashWallet/Sources/UI/Views/SharedViews/Keyboard/NumberKeyboard.swift +++ b/DashWallet/Sources/UI/Views/SharedViews/Keyboard/NumberKeyboard.swift @@ -170,7 +170,7 @@ extension NumberKeyboard { extension NumberKeyboard { enum Style { static let padding: CGFloat = 5 - static let buttonHeight: CGFloat = 50 + static let buttonHeight: CGFloat = UIDevice.isIphone5OrLess ? 45 : 50 static let buttonMaxWidth: CGFloat = 115 static let rowsCount: UInt = 4 static let sectionsCount = 3