Skip to content

Commit

Permalink
项目主体框架
Browse files Browse the repository at this point in the history
  • Loading branch information
PGzxc committed Jun 6, 2023
1 parent 364c5a7 commit 899b530
Show file tree
Hide file tree
Showing 9 changed files with 249 additions and 3 deletions.
86 changes: 84 additions & 2 deletions WanAndroid_SwiftUI.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,20 @@
archiveVersion = 1;
classes = {
};
objectVersion = 56;
objectVersion = 55;
objects = {

/* Begin PBXBuildFile section */
F30653422A2DEA5300AEB416 /* WanAndroid_SwiftUIApp.swift in Sources */ = {isa = PBXBuildFile; fileRef = F30653412A2DEA5300AEB416 /* WanAndroid_SwiftUIApp.swift */; };
F30653442A2DEA5300AEB416 /* ContentView.swift in Sources */ = {isa = PBXBuildFile; fileRef = F30653432A2DEA5300AEB416 /* ContentView.swift */; };
F30653462A2DEA5500AEB416 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = F30653452A2DEA5500AEB416 /* Assets.xcassets */; };
F30653492A2DEA5500AEB416 /* Preview Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = F30653482A2DEA5500AEB416 /* Preview Assets.xcassets */; };
F3BE74192A2EE5C3004AC94F /* TabBarView.swift in Sources */ = {isa = PBXBuildFile; fileRef = F3BE74182A2EE5C3004AC94F /* TabBarView.swift */; };
F3BE74212A2EE600004AC94F /* HomeView.swift in Sources */ = {isa = PBXBuildFile; fileRef = F3BE74202A2EE600004AC94F /* HomeView.swift */; };
F3BE74232A2EE615004AC94F /* NavigationView.swift in Sources */ = {isa = PBXBuildFile; fileRef = F3BE74222A2EE615004AC94F /* NavigationView.swift */; };
F3BE74252A2EE628004AC94F /* ProjectView.swift in Sources */ = {isa = PBXBuildFile; fileRef = F3BE74242A2EE628004AC94F /* ProjectView.swift */; };
F3BE74272A2EE63C004AC94F /* MessageView.swift in Sources */ = {isa = PBXBuildFile; fileRef = F3BE74262A2EE63C004AC94F /* MessageView.swift */; };
F3BE74292A2EE651004AC94F /* MeView.swift in Sources */ = {isa = PBXBuildFile; fileRef = F3BE74282A2EE651004AC94F /* MeView.swift */; };
/* End PBXBuildFile section */

/* Begin PBXFileReference section */
Expand All @@ -19,6 +25,12 @@
F30653432A2DEA5300AEB416 /* ContentView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContentView.swift; sourceTree = "<group>"; };
F30653452A2DEA5500AEB416 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
F30653482A2DEA5500AEB416 /* Preview Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = "Preview Assets.xcassets"; sourceTree = "<group>"; };
F3BE74182A2EE5C3004AC94F /* TabBarView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TabBarView.swift; sourceTree = "<group>"; };
F3BE74202A2EE600004AC94F /* HomeView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = HomeView.swift; sourceTree = "<group>"; };
F3BE74222A2EE615004AC94F /* NavigationView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NavigationView.swift; sourceTree = "<group>"; };
F3BE74242A2EE628004AC94F /* ProjectView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ProjectView.swift; sourceTree = "<group>"; };
F3BE74262A2EE63C004AC94F /* MessageView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MessageView.swift; sourceTree = "<group>"; };
F3BE74282A2EE651004AC94F /* MeView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MeView.swift; sourceTree = "<group>"; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
Expand Down Expand Up @@ -51,6 +63,8 @@
F30653402A2DEA5300AEB416 /* WanAndroid_SwiftUI */ = {
isa = PBXGroup;
children = (
F3BE741A2A2EE5CD004AC94F /* Content */,
F3BE74172A2EE5B2004AC94F /* TabBar */,
F30653412A2DEA5300AEB416 /* WanAndroid_SwiftUIApp.swift */,
F30653432A2DEA5300AEB416 /* ContentView.swift */,
F30653452A2DEA5500AEB416 /* Assets.xcassets */,
Expand All @@ -67,6 +81,66 @@
path = "Preview Content";
sourceTree = "<group>";
};
F3BE74172A2EE5B2004AC94F /* TabBar */ = {
isa = PBXGroup;
children = (
F3BE74182A2EE5C3004AC94F /* TabBarView.swift */,
);
name = TabBar;
sourceTree = "<group>";
};
F3BE741A2A2EE5CD004AC94F /* Content */ = {
isa = PBXGroup;
children = (
F3BE741F2A2EE5F2004AC94F /* Home */,
F3BE741E2A2EE5E9004AC94F /* Navigation */,
F3BE741D2A2EE5E3004AC94F /* Project */,
F3BE741C2A2EE5DE004AC94F /* Message */,
F3BE741B2A2EE5D8004AC94F /* Me */,
);
name = Content;
sourceTree = "<group>";
};
F3BE741B2A2EE5D8004AC94F /* Me */ = {
isa = PBXGroup;
children = (
F3BE74282A2EE651004AC94F /* MeView.swift */,
);
path = Me;
sourceTree = "<group>";
};
F3BE741C2A2EE5DE004AC94F /* Message */ = {
isa = PBXGroup;
children = (
F3BE74262A2EE63C004AC94F /* MessageView.swift */,
);
name = Message;
sourceTree = "<group>";
};
F3BE741D2A2EE5E3004AC94F /* Project */ = {
isa = PBXGroup;
children = (
F3BE74242A2EE628004AC94F /* ProjectView.swift */,
);
name = Project;
sourceTree = "<group>";
};
F3BE741E2A2EE5E9004AC94F /* Navigation */ = {
isa = PBXGroup;
children = (
F3BE74222A2EE615004AC94F /* NavigationView.swift */,
);
path = Navigation;
sourceTree = "<group>";
};
F3BE741F2A2EE5F2004AC94F /* Home */ = {
isa = PBXGroup;
children = (
F3BE74202A2EE600004AC94F /* HomeView.swift */,
);
name = Home;
sourceTree = "<group>";
};
/* End PBXGroup section */

/* Begin PBXNativeTarget section */
Expand Down Expand Up @@ -103,7 +177,7 @@
};
};
buildConfigurationList = F30653392A2DEA5300AEB416 /* Build configuration list for PBXProject "WanAndroid_SwiftUI" */;
compatibilityVersion = "Xcode 14.0";
compatibilityVersion = "Xcode 13.0";
developmentRegion = en;
hasScannedForEncodings = 0;
knownRegions = (
Expand Down Expand Up @@ -137,7 +211,13 @@
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
F3BE74252A2EE628004AC94F /* ProjectView.swift in Sources */,
F30653442A2DEA5300AEB416 /* ContentView.swift in Sources */,
F3BE74212A2EE600004AC94F /* HomeView.swift in Sources */,
F3BE74232A2EE615004AC94F /* NavigationView.swift in Sources */,
F3BE74292A2EE651004AC94F /* MeView.swift in Sources */,
F3BE74192A2EE5C3004AC94F /* TabBarView.swift in Sources */,
F3BE74272A2EE63C004AC94F /* MessageView.swift in Sources */,
F30653422A2DEA5300AEB416 /* WanAndroid_SwiftUIApp.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
Expand Down Expand Up @@ -274,6 +354,7 @@
INFOPLIST_KEY_UILaunchScreen_Generation = YES;
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
IPHONEOS_DEPLOYMENT_TARGET = 16.0;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
Expand Down Expand Up @@ -302,6 +383,7 @@
INFOPLIST_KEY_UILaunchScreen_Generation = YES;
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
IPHONEOS_DEPLOYMENT_TARGET = 16.0;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,13 @@
<integer>0</integer>
</dict>
</dict>
<key>SuppressBuildableAutocreation</key>
<dict>
<key>F306533D2A2DEA5300AEB416</key>
<dict>
<key>primary</key>
<true/>
</dict>
</dict>
</dict>
</plist>
20 changes: 20 additions & 0 deletions WanAndroid_SwiftUI/HomeView.swift
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()
}
}
20 changes: 20 additions & 0 deletions WanAndroid_SwiftUI/Me/MeView.swift
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()
}
}
20 changes: 20 additions & 0 deletions WanAndroid_SwiftUI/MessageView.swift
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()
}
}
20 changes: 20 additions & 0 deletions WanAndroid_SwiftUI/Navigation/NavigationView.swift
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()
}
}
20 changes: 20 additions & 0 deletions WanAndroid_SwiftUI/ProjectView.swift
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()
}
}
56 changes: 56 additions & 0 deletions WanAndroid_SwiftUI/TabBarView.swift
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()
}
}
2 changes: 1 addition & 1 deletion WanAndroid_SwiftUI/WanAndroid_SwiftUIApp.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import SwiftUI
struct WanAndroid_SwiftUIApp: App {
var body: some Scene {
WindowGroup {
ContentView()
TabBarView()
}
}
}

0 comments on commit 899b530

Please sign in to comment.