[ios] Added help to menu and switched some menu icons to system symbols

Signed-off-by: Yannik Bloscheck <git@yannikbloscheck.com>
This commit is contained in:
Yannik Bloscheck
2025-07-18 15:12:54 +02:00
committed by Yannik Bloscheck
parent a5bd24ccdb
commit 5ae0ef626a
5 changed files with 64 additions and 21 deletions

View File

@@ -17,7 +17,17 @@ class BottomMenuItemCell: UITableViewCell {
private(set) var isEnabled: Bool = true
func configure(imageName: String, title: String, badgeCount: UInt = .zero, enabled: Bool = true) {
icon.image = UIImage(named: imageName)
if imageName == "help" {
icon.image = Settings.LeftButtonType.help.image
} else if imageName == "plus" {
icon.image = Settings.LeftButtonType.addPlace.image
} else if imageName == "track_recorder_inactive" || imageName == "track_recorder_active" || imageName == "ic_menu_download" || imageName == "ic_menu_donate" {
icon.image = UIImage(named: imageName)
} else {
let configuration = UIImage.SymbolConfiguration(pointSize: 22, weight: .semibold)
icon.image = UIImage(systemName: imageName, withConfiguration: configuration)!
}
label.text = title
badgeBackground.isHidden = badgeCount == 0
badgeCountLabel.text = "\(badgeCount)"