mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-21 22:03:37 +00:00
[ios] Update design of existence and opening hour confirmation for place page
Signed-off-by: Yannik Bloscheck <git@yannikbloscheck.com>
This commit is contained in:
committed by
Yannik Bloscheck
parent
d1f9806901
commit
c616e235a1
@@ -40,8 +40,6 @@ final class PlacePagePreviewViewController: UIViewController {
|
||||
}
|
||||
}
|
||||
|
||||
var placePageData: PlacePageData?
|
||||
|
||||
private var distance: String? = nil
|
||||
private var speedAndAltitude: String? = nil
|
||||
private var heading: CGFloat? = nil
|
||||
@@ -86,9 +84,6 @@ final class PlacePagePreviewViewController: UIViewController {
|
||||
subtitleString.append(NSAttributedString(string: !subtitleString.string.isEmpty ? " • " + subtitle : subtitle,
|
||||
attributes: [.foregroundColor : UIColor.blackSecondaryText(),
|
||||
.font : UIFont.regular14()]))
|
||||
}
|
||||
|
||||
if !subtitleString.string.isEmpty {
|
||||
subtitleLabel.attributedText = subtitleString
|
||||
subtitleContainerView.isHidden = false
|
||||
} else {
|
||||
@@ -260,15 +255,6 @@ final class PlacePagePreviewViewController: UIViewController {
|
||||
attributedString.append(detailsString)
|
||||
}
|
||||
|
||||
if let openingHoursDate = placePageData?.infoData?.checkDateOpeningHours {
|
||||
let timeAgoText = openingHoursDate.formatTimeAgo()
|
||||
let openingHoursDateString = NSAttributedString(string: " • " + String(format: L("hours_confirmed_time_ago"), timeAgoText),
|
||||
attributes: [NSAttributedString.Key.font: UIFont.regular12(),
|
||||
NSAttributedString.Key.foregroundColor: UIColor.blackSecondaryText()])
|
||||
attributedString.append(openingHoursDateString)
|
||||
}
|
||||
|
||||
scheduleLabel.attributedText = attributedString
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user