mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-19 13:03:36 +00:00
[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:
committed by
Yannik Bloscheck
parent
e7524e5725
commit
1e8ab6d209
@@ -84,9 +84,12 @@ final class PlacePagePreviewViewController: UIViewController {
|
|||||||
subtitleString.append(NSAttributedString(string: !subtitleString.string.isEmpty ? " • " + subtitle : subtitle,
|
subtitleString.append(NSAttributedString(string: !subtitleString.string.isEmpty ? " • " + subtitle : subtitle,
|
||||||
attributes: [.foregroundColor : UIColor.blackSecondaryText(),
|
attributes: [.foregroundColor : UIColor.blackSecondaryText(),
|
||||||
.font : UIFont.regular14()]))
|
.font : UIFont.regular14()]))
|
||||||
|
subtitleLabel.attributedText = subtitleString
|
||||||
|
subtitleContainerView.isHidden = false
|
||||||
|
} else {
|
||||||
|
subtitleLabel.text = nil
|
||||||
|
subtitleContainerView.isHidden = true
|
||||||
}
|
}
|
||||||
|
|
||||||
subtitleLabel.attributedText = subtitleString
|
|
||||||
}
|
}
|
||||||
|
|
||||||
placePageDirectionView = subtitleDirectionView
|
placePageDirectionView = subtitleDirectionView
|
||||||
|
|||||||
Reference in New Issue
Block a user