From 1e8ab6d209f71f591f2b768166171d4ba6df9df9 Mon Sep 17 00:00:00 2001 From: Kiryl Kaveryn Date: Tue, 1 Jul 2025 11:36:14 +0400 Subject: [PATCH] [ios] Hide the PP subtitle when there are no any info (related for Tracks) Signed-off-by: Kiryl Kaveryn --- .../Components/PlacePagePreviewViewController.swift | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/iphone/Maps/UI/PlacePage/Components/PlacePagePreviewViewController.swift b/iphone/Maps/UI/PlacePage/Components/PlacePagePreviewViewController.swift index 646b3eb4c..589efd375 100644 --- a/iphone/Maps/UI/PlacePage/Components/PlacePagePreviewViewController.swift +++ b/iphone/Maps/UI/PlacePage/Components/PlacePagePreviewViewController.swift @@ -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