Skip to content

Commit

Permalink
Merge branch 'fix/device-name-and-time-left-should-be-ios-118'
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrej Mihajlov committed Apr 19, 2023
2 parents cef7a8c + 733e942 commit d1cb72c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions ios/MullvadVPN/Containers/Root/HeaderBarView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -29,22 +29,25 @@ class HeaderBarView: UIView {
private let deviceInfoHolder: UIStackView = {
let stackView = UIStackView()
stackView.axis = .horizontal
stackView.distribution = .fillProportionally
stackView.distribution = .fill
stackView.translatesAutoresizingMaskIntoConstraints = false
stackView.spacing = 16.0
return stackView
}()

private lazy var deviceName: UILabel = {
let label = UILabel(frame: .zero)
label.font = UIFont.systemFont(ofSize: 14)
label.textColor = UIColor(white: 1.0, alpha: 0.8)
label.setContentHuggingPriority(.defaultHigh, for: .horizontal)
return label
}()

private lazy var timeLeft: UILabel = {
let label = UILabel(frame: .zero)
label.font = UIFont.systemFont(ofSize: 14)
label.textColor = UIColor(white: 1.0, alpha: 0.8)
label.setContentHuggingPriority(.defaultLow, for: .horizontal)
return label
}()

Expand Down Expand Up @@ -128,7 +131,7 @@ class HeaderBarView: UIView {
brandNameImageView.heightAnchor.constraint(equalToConstant: 18),
layoutMarginsGuide.bottomAnchor.constraint(
equalTo: deviceInfoHolder.bottomAnchor,
constant: 4
constant: 8
),

settingsButton.leadingAnchor.constraint(
Expand Down

0 comments on commit d1cb72c

Please sign in to comment.