24 lines
653 B
Swift
24 lines
653 B
Swift
import SwiftUI
|
|
|
|
struct ContentView: View {
|
|
@State private var transactions = TransactionModel.sampleData
|
|
|
|
var body: some View {
|
|
TabView {
|
|
DashboardView(transactions: transactions)
|
|
.tabItem {
|
|
Label("Dashboard", systemImage: "chart.pie.fill")
|
|
}
|
|
|
|
TransactionsView()
|
|
.tabItem {
|
|
Label("Transactions", systemImage: "list.bullet")
|
|
}
|
|
|
|
ProfileView()
|
|
.tabItem {
|
|
Label("Profile", systemImage: "person.fill")
|
|
}
|
|
}
|
|
}
|
|
}
|