From 49f5463243a31dee93de8a2e6673195b7d4b22d5 Mon Sep 17 00:00:00 2001 From: Mikhail Naryshkin Date: Wed, 2 Nov 2022 00:30:07 +0700 Subject: [PATCH] [iOS][UI] Show local language secondary title in Place Page. #3756 Signed-off-by: Mikhail Naryshkin --- .../Common/PlacePagePreviewData.h | 1 + .../Common/PlacePagePreviewData.mm | 1 + .../PlacePageHeaderPresenter.swift | 2 +- .../PlacePageHeaderViewController.swift | 32 +++++++++++++++++-- iphone/Maps/UI/PlacePage/PlacePage.storyboard | 7 ++-- .../Layouts/PlacePageCommonLayout.swift | 5 +-- map/place_page_info.cpp | 12 +++++-- 7 files changed, 47 insertions(+), 13 deletions(-) diff --git a/iphone/CoreApi/CoreApi/PlacePageData/Common/PlacePagePreviewData.h b/iphone/CoreApi/CoreApi/PlacePageData/Common/PlacePagePreviewData.h index 3742d64a22..de9aeea8df 100644 --- a/iphone/CoreApi/CoreApi/PlacePageData/Common/PlacePagePreviewData.h +++ b/iphone/CoreApi/CoreApi/PlacePageData/Common/PlacePagePreviewData.h @@ -32,6 +32,7 @@ NS_ASSUME_NONNULL_BEGIN @interface PlacePagePreviewData : NSObject @property(nonatomic, readonly, nullable) NSString *title; +@property(nonatomic, readonly, nullable) NSString *secondaryTitle; @property(nonatomic, readonly, nullable) NSString *subtitle; @property(nonatomic, readonly, nullable) NSString *coordinates; @property(nonatomic, readonly, nullable) NSString *address; diff --git a/iphone/CoreApi/CoreApi/PlacePageData/Common/PlacePagePreviewData.mm b/iphone/CoreApi/CoreApi/PlacePageData/Common/PlacePagePreviewData.mm index 72abfde1ac..5a88e7fd5a 100644 --- a/iphone/CoreApi/CoreApi/PlacePageData/Common/PlacePagePreviewData.mm +++ b/iphone/CoreApi/CoreApi/PlacePageData/Common/PlacePagePreviewData.mm @@ -89,6 +89,7 @@ static PlacePageDataHotelType convertHotelType(std::optional - + - + @@ -1726,9 +1726,6 @@ - - -