Fixed auto layout issue with send button

pull/2/head
Michael Scoff 7 years ago
parent 910683ae3f
commit dd90abd057
  1. 5
      Trust/Transactions/Views/TransactionsFooterView.swift

@ -6,7 +6,7 @@ import UIKit
class TransactionsFooterView: UIView { class TransactionsFooterView: UIView {
lazy var sendButton: Button = { lazy var sendButton: Button = {
let sendButton = Button(size: .large, style: .squared) let sendButton = Button(size: .normal, style: .squared)
sendButton.translatesAutoresizingMaskIntoConstraints = false sendButton.translatesAutoresizingMaskIntoConstraints = false
sendButton.layer.cornerRadius = 6 sendButton.layer.cornerRadius = 6
sendButton.setTitle(NSLocalizedString("Generic.Send", value: "Send", comment: ""), for: .normal) sendButton.setTitle(NSLocalizedString("Generic.Send", value: "Send", comment: ""), for: .normal)
@ -30,10 +30,9 @@ class TransactionsFooterView: UIView {
sendButton, sendButton,
requestButton, requestButton,
]) ])
stackView.translatesAutoresizingMaskIntoConstraints = false
stackView.isLayoutMarginsRelativeArrangement = true stackView.isLayoutMarginsRelativeArrangement = true
stackView.layoutMargins = UIEdgeInsets(top: 10, left: 15, bottom: 10, right: 15) stackView.layoutMargins = UIEdgeInsets(top: 10, left: 15, bottom: 10, right: 15)
stackView.translatesAutoresizingMaskIntoConstraints = false
stackView.distribution = .fillEqually stackView.distribution = .fillEqually
stackView.spacing = 15 stackView.spacing = 15
addSubview(stackView) addSubview(stackView)

Loading…
Cancel
Save