[iOS] Add Panoramax link on the place page

Signed-off-by: Jean-Baptiste Charron <jeanbaptiste.charron@outlook.fr>
Co-authored by: Yannik Bloscheck <git@yannikbloscheck.com>
This commit is contained in:
Jean-Baptiste
2025-06-22 21:46:28 +02:00
committed by Konstantin Pastbin
parent 25e49b0fe1
commit df89761eba
56 changed files with 189 additions and 0 deletions

View File

@@ -86,6 +86,7 @@ protocol PlacePageInfoViewControllerDelegate: AnyObject {
func didPressVk()
func didPressLine()
func didPressBluesky()
func didPressPanoramax()
func didPressEmail()
func didPressOpenInApp(from sourceView: UIView)
func didCopy(_ content: String)
@@ -118,6 +119,7 @@ class PlacePageInfoViewController: UIViewController {
private var vkView: InfoItemViewController?
private var lineView: InfoItemViewController?
private var blueskyView: InfoItemViewController?
private var panoramaxView: InfoItemViewController?
private var cuisineView: InfoItemViewController?
private var operatorView: InfoItemViewController?
private var wifiView: InfoItemViewController?
@@ -361,6 +363,18 @@ class PlacePageInfoViewController: UIViewController {
self?.delegate?.didCopy(bluesky)
})
}
if let panoramax = placePageInfoData.panoramax {
panoramaxView = createInfoItem(panoramax,
icon: UIImage(named: "ic_placepage_panoramax"),
style: .link,
tapHandler: { [weak self] in
self?.delegate?.didPressPanoramax()
},
longPressHandler: { [weak self] in
self?.delegate?.didCopy(panoramax)
})
}
if let address = placePageInfoData.address {
addressView = createInfoItem(address,