28 lines
1.2 KiB
Swift
28 lines
1.2 KiB
Swift
//
|
|
// TabItem.swift
|
|
// tg_test
|
|
//
|
|
|
|
import SwiftUI
|
|
|
|
struct TabItem: Identifiable, Equatable {
|
|
let id: Int
|
|
let title: String
|
|
let icon: String
|
|
let color: Color
|
|
var badge: String? = nil
|
|
|
|
static let allTabs: [TabItem] = [
|
|
TabItem(id: 0, title: "Home", icon: "house.fill", color: .blue),
|
|
TabItem(id: 1, title: "Search", icon: "magnifyingglass", color: .indigo),
|
|
TabItem(id: 2, title: "Notifications", icon: "bell.fill", color: .orange, badge: "3"),
|
|
TabItem(id: 3, title: "Profile", icon: "person.fill", color: .purple),
|
|
TabItem(id: 4, title: "Analytics", icon: "chart.bar.xaxis", color: .green),
|
|
TabItem(id: 5, title: "Messages", icon: "bubble.left.and.bubble.right.fill", color: .teal, badge: "5"),
|
|
TabItem(id: 6, title: "Favorites", icon: "heart.fill", color: .pink),
|
|
TabItem(id: 7, title: "Downloads", icon: "arrow.down.circle.fill", color: .cyan),
|
|
TabItem(id: 8, title: "Cloud", icon: "icloud.fill", color: .blue),
|
|
TabItem(id: 9, title: "Settings", icon: "gearshape.fill", color: .gray),
|
|
TabItem(id: 10, title: "Help", icon: "questionmark.circle.fill", color: .mint)
|
|
]
|
|
}
|