Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down Expand Up @@ -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)
])
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down