SwiftUI app against master API: link, profiles, browse, live TV, favorites sync, and TestFlight-ready assets. Co-authored-by: Cursor <cursoragent@cursor.com>
20 lines
604 B
Swift
20 lines
604 B
Swift
import Foundation
|
|
|
|
enum ProfileAvatars {
|
|
static let all: [(id: String, emoji: String, label: String)] = [
|
|
("fox", "🦊", "Vos"),
|
|
("panda", "🐼", "Panda"),
|
|
("robot", "🤖", "Robot"),
|
|
("alien", "👽", "Alien"),
|
|
("ninja", "🥷", "Ninja"),
|
|
("pirate", "🏴☠️", "Piraat"),
|
|
("wizard", "🧙", "Tovenaar"),
|
|
("dino", "🦕", "Dino"),
|
|
("cat", "🐱", "Kat"),
|
|
("rocket", "🚀", "Raket"),
|
|
]
|
|
|
|
static func emoji(for id: String?) -> String {
|
|
all.first { $0.id == (id ?? "fox") }?.emoji ?? "🙂"
|
|
}
|
|
}
|