[ios] Hide the PP subtitle when there are no any info (related for Tracks)

Signed-off-by: Kiryl Kaveryn <kirylkaveryn@gmail.com>
This commit is contained in:
Kiryl Kaveryn
2025-07-01 11:36:14 +04:00
committed by Yannik Bloscheck
parent e7524e5725
commit 1e8ab6d209

View File

@@ -84,9 +84,12 @@ final class PlacePagePreviewViewController: UIViewController {
subtitleString.append(NSAttributedString(string: !subtitleString.string.isEmpty ? "" + subtitle : subtitle,
attributes: [.foregroundColor : UIColor.blackSecondaryText(),
.font : UIFont.regular14()]))
subtitleLabel.attributedText = subtitleString
subtitleContainerView.isHidden = false
} else {
subtitleLabel.text = nil
subtitleContainerView.isHidden = true
}
subtitleLabel.attributedText = subtitleString
}
placePageDirectionView = subtitleDirectionView