You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
55 lines
1.2 KiB
55 lines
1.2 KiB
//
|
|
// TabDestination.swift
|
|
// PadelClub
|
|
//
|
|
// Created by Razmig Sarkissian on 29/02/2024.
|
|
//
|
|
|
|
import Foundation
|
|
|
|
enum TabDestination: CaseIterable, Identifiable {
|
|
var id: Self {
|
|
self
|
|
}
|
|
|
|
case activity
|
|
case eventList
|
|
case toolbox
|
|
case tournamentOrganizer
|
|
case umpire
|
|
case padelClub
|
|
|
|
var title: String {
|
|
switch self {
|
|
case .activity:
|
|
return "Activité"
|
|
case .eventList:
|
|
return "Journal"
|
|
case .toolbox:
|
|
return "Outils"
|
|
case .tournamentOrganizer:
|
|
return "Gestionnaire"
|
|
case .umpire:
|
|
return "Juge-Arbitre"
|
|
case .padelClub:
|
|
return "Padel Club"
|
|
}
|
|
}
|
|
|
|
var image: String {
|
|
switch self {
|
|
case .activity:
|
|
return "calendar.day.timeline.left"
|
|
case .eventList:
|
|
return "book.closed"
|
|
case .toolbox:
|
|
return "wrench.and.screwdriver"
|
|
case .tournamentOrganizer:
|
|
return "squares.below.rectangle"
|
|
case .umpire:
|
|
return "person.bust"
|
|
case .padelClub:
|
|
return "shield"
|
|
}
|
|
}
|
|
}
|
|
|