Skip to content

Commit

Permalink
Adjust empty view button
Browse files Browse the repository at this point in the history
  • Loading branch information
vikmeup committed Mar 22, 2018
1 parent ad74159 commit a643e7e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Trust/UI/EmptyView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ class EmptyView: UIView {
button.translatesAutoresizingMaskIntoConstraints = false
button.setTitle(actionTitle, for: .normal)
button.addTarget(self, action: #selector(retry), for: .touchUpInside)
button.titleLabel?.adjustsFontSizeToFitWidth = true

let stackView = UIStackView(arrangedSubviews: [
imageView,
Expand All @@ -63,7 +64,7 @@ class EmptyView: UIView {
stackView.leadingAnchor.constraint(equalTo: leadingAnchor),
stackView.centerXAnchor.constraint(equalTo: centerXAnchor),
stackView.centerYAnchor.constraint(equalTo: centerYAnchor),
button.widthAnchor.constraint(equalToConstant: 160),
button.widthAnchor.constraint(equalToConstant: 180),
])
}

Expand Down

0 comments on commit a643e7e

Please sign in to comment.