-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
249 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// | ||
// HomeView.swift | ||
// WanAndroid_SwiftUI | ||
// | ||
// Created by zxc on 2023/6/6. | ||
// | ||
|
||
import SwiftUI | ||
|
||
struct HomeView: View { | ||
var body: some View { | ||
Text("HomeView") | ||
} | ||
} | ||
|
||
struct HomeView_Previews: PreviewProvider { | ||
static var previews: some View { | ||
HomeView() | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// | ||
// MeView.swift | ||
// WanAndroid_SwiftUI | ||
// | ||
// Created by zxc on 2023/6/6. | ||
// | ||
|
||
import SwiftUI | ||
|
||
struct MeView: View { | ||
var body: some View { | ||
Text("MeView") | ||
} | ||
} | ||
|
||
struct MeView_Previews: PreviewProvider { | ||
static var previews: some View { | ||
MeView() | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// | ||
// MessageView.swift | ||
// WanAndroid_SwiftUI | ||
// | ||
// Created by zxc on 2023/6/6. | ||
// | ||
|
||
import SwiftUI | ||
|
||
struct MessageView: View { | ||
var body: some View { | ||
Text("MessageView") | ||
} | ||
} | ||
|
||
struct MessageView_Previews: PreviewProvider { | ||
static var previews: some View { | ||
MessageView() | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// | ||
// NavigationView.swift | ||
// WanAndroid_SwiftUI | ||
// | ||
// Created by zxc on 2023/6/6. | ||
// | ||
|
||
import SwiftUI | ||
|
||
struct NavigationView: View { | ||
var body: some View { | ||
Text("NavigationView") | ||
} | ||
} | ||
|
||
struct NavigationView_Previews: PreviewProvider { | ||
static var previews: some View { | ||
NavigationView() | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// | ||
// ProjectView.swift | ||
// WanAndroid_SwiftUI | ||
// | ||
// Created by zxc on 2023/6/6. | ||
// | ||
|
||
import SwiftUI | ||
|
||
struct ProjectView: View { | ||
var body: some View { | ||
Text("ProjectView") | ||
} | ||
} | ||
|
||
struct ProjectView_Previews: PreviewProvider { | ||
static var previews: some View { | ||
ProjectView() | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
// | ||
// TabBarView.swift | ||
// WanAndroid_SwiftUI | ||
// | ||
// Created by zxc on 2023/6/6. | ||
// | ||
|
||
import SwiftUI | ||
|
||
struct TabBarView: View { | ||
var body: some View { | ||
TabView{ | ||
|
||
NavigationStack{ | ||
HomeView() | ||
}.tabItem { | ||
Image(systemName: "house") | ||
Text("home") | ||
} | ||
|
||
NavigationStack{ | ||
NavigationView() | ||
}.tabItem { | ||
Image(systemName: "paperplane") | ||
Text("导航") | ||
} | ||
|
||
NavigationStack{ | ||
ProjectView() | ||
}.tabItem { | ||
Image(systemName: "sidebar.left") | ||
Text("项目") | ||
} | ||
|
||
NavigationStack{ | ||
MessageView() | ||
}.tabItem { | ||
Image(systemName: "bell") | ||
Text("消息") | ||
}.badge(1) | ||
|
||
NavigationStack{ | ||
MeView() | ||
}.tabItem { | ||
Image(systemName: "person.fill") | ||
Text("我的") | ||
} | ||
} | ||
} | ||
} | ||
|
||
struct TabBarView_Previews: PreviewProvider { | ||
static var previews: some View { | ||
TabBarView() | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters