Skip to content

Commit 77383c1

Browse files
committed
tvos label shadows
Signed-off-by: Joseph Mattello <[email protected]>
1 parent 1da4e68 commit 77383c1

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

Provenance/Game Library/UI/Game Library/Reusable Views/PVGameLibraryCollectionViewCell.swift

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -391,9 +391,11 @@ final class PVGameLibraryCollectionViewCell: UICollectionViewCell {
391391
@IBOutlet private(set) var titleLabel: UILabel! {
392392
didSet {
393393
#if os(tvOS)
394-
// The label's alpha will get set to 1 on focus
395-
titleLabel.alpha = 1
396-
titleLabel.textColor = UIColor.darkGray
394+
// The label's alpha will get set to 1 on focus
395+
titleLabel.alpha = 1
396+
titleLabel.textColor = UIColor.darkGray
397+
titleLabel.shadowColor = UIColor.init(white: 0.2, alpha: 0.5)
398+
titleLabel.shadowOffset = .init(width: 0.5, height: 0.5)
397399
#endif
398400
}
399401
}

0 commit comments

Comments
 (0)