This commit is contained in:
2024-01-23 18:00:59 +08:00
commit c10f0dd29d
55 changed files with 1906 additions and 0 deletions

29
demo/Models/TabBar.swift Normal file
View File

@@ -0,0 +1,29 @@
//
// TabBar.swift
// jason
//
// Created by Jason on 2024/1/19.
//
import SwiftUI
struct TabItem: Identifiable {
var id = UUID()
var icon: String
var text: String
var tab: Tab
}
var tabItems = [
TabItem(icon: "book", text: "图书馆", tab: .home),
TabItem(icon: "bag", text: "生活馆", tab: .explore),
TabItem(icon: "cart", text: "购物车", tab: .message),
TabItem(icon: "person", text: "个人中心", tab: .account)
]
enum Tab: String {
case home
case explore
case message
case account
}