From 9bbc84aa3f389db74aa8aaa9a8e3ddac13f4e2c5 Mon Sep 17 00:00:00 2001 From: David Martinez <47610359+dvdmrtnz@users.noreply.github.com> Date: Wed, 8 Nov 2023 19:47:44 +0100 Subject: [PATCH] [search][ios] Add Paid/Free indicator to search results Signed-off-by: David Martinez <47610359+dvdmrtnz@users.noreply.github.com> --- iphone/Maps/UI/Search/TableView/MWMSearchCommonCell.mm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/iphone/Maps/UI/Search/TableView/MWMSearchCommonCell.mm b/iphone/Maps/UI/Search/TableView/MWMSearchCommonCell.mm index 5ae1ebb61a..07940fc594 100644 --- a/iphone/Maps/UI/Search/TableView/MWMSearchCommonCell.mm +++ b/iphone/Maps/UI/Search/TableView/MWMSearchCommonCell.mm @@ -36,6 +36,7 @@ NSString * cuisine = @(result.GetCuisine().c_str()).capitalizedString; NSString * airportIata = @(result.GetAirportIata().c_str()); NSString * roadShields = @(result.GetRoadShields().c_str()); + NSString * fee = @(result.GetFee().c_str()); NSString * brand = @""; if (!result.GetBrand().empty()) brand = @(platform::GetLocalizedBrandName(result.GetBrand()).c_str()); @@ -57,6 +58,8 @@ description = brand; else if (cuisine.length > 0) description = cuisine; + else if (fee.length > 0) + description = fee; if ([description length] == 0) self.infoLabel.text = localizedTypeName;