Skip to content

Commit 6814e6e

Browse files
committed
Adjust layout and styling in CustomPlayerViewController for improved UI consistency
1 parent 9f962f6 commit 6814e6e

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

Zapp/Views/FullScreenPlayerView.swift

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,6 @@ private struct PlayerLoadingOverlay: View {
135135
.padding(.horizontal, 20)
136136
}
137137
.transition(.opacity)
138-
// Block interaction while loading so underlying controls cannot be tapped
139138
.allowsHitTesting(true)
140139
.zIndex(2)
141140
}
@@ -372,7 +371,7 @@ class CustomPlayerViewController: UIViewController, UIGestureRecognizerDelegate,
372371
topBar.topAnchor.constraint(equalTo: safeArea.topAnchor, constant: 12),
373372
topBar.leadingAnchor.constraint(equalTo: safeArea.leadingAnchor, constant: 16),
374373
topBar.trailingAnchor.constraint(equalTo: safeArea.trailingAnchor, constant: -16),
375-
topBar.heightAnchor.constraint(greaterThanOrEqualToConstant: 60)
374+
topBar.heightAnchor.constraint(greaterThanOrEqualToConstant: 68)
376375
])
377376

378377
closeButton.tintColor = .white
@@ -394,23 +393,24 @@ class CustomPlayerViewController: UIViewController, UIGestureRecognizerDelegate,
394393

395394
let textStack = UIStackView(arrangedSubviews: [titleLabel, subtitleLabel])
396395
textStack.axis = .vertical
397-
textStack.spacing = 2
396+
textStack.spacing = 3
398397
textStack.alignment = .leading
399398
textStack.translatesAutoresizingMaskIntoConstraints = false
400399
topBar.contentView.addSubview(textStack)
401400
NSLayoutConstraint.activate([
402401
textStack.centerYAnchor.constraint(equalTo: topBar.contentView.centerYAnchor),
403-
textStack.leadingAnchor.constraint(equalTo: closeButton.trailingAnchor, constant: 12)
402+
textStack.leadingAnchor.constraint(equalTo: closeButton.trailingAnchor, constant: 16)
404403
])
405404
let textTrailingConstraint = textStack.trailingAnchor.constraint(equalTo: topBar.contentView.trailingAnchor, constant: -16)
406405
textTrailingConstraint.priority = .defaultLow
407406
textTrailingConstraint.isActive = true
408407

409-
titleLabel.font = UIFont.systemFont(ofSize: 18, weight: .semibold)
408+
titleLabel.font = UIFont.systemFont(ofSize: 17, weight: .semibold)
410409
titleLabel.textColor = .white
411-
subtitleLabel.font = UIFont.systemFont(ofSize: 13, weight: .regular)
412-
subtitleLabel.textColor = UIColor.white.withAlphaComponent(0.8)
413-
subtitleLabel.numberOfLines = 1
410+
titleLabel.numberOfLines = 1
411+
subtitleLabel.font = UIFont.systemFont(ofSize: 14, weight: .medium)
412+
subtitleLabel.textColor = UIColor.white.withAlphaComponent(0.85)
413+
subtitleLabel.numberOfLines = 2
414414
configureLiveBadge()
415415
configureQualityButtonAppearance()
416416
qualityButton.addTarget(self, action: #selector(qualityButtonTapped), for: .touchUpInside)

0 commit comments

Comments
 (0)