diff --git a/AIStudyApp/AIStudyApp/Assets.xcassets/Icons/tab-learn-active.imageset/Contents.json b/AIStudyApp/AIStudyApp/Assets.xcassets/Icons/tab-learn-active.imageset/Contents.json new file mode 100644 index 0000000..66f536e --- /dev/null +++ b/AIStudyApp/AIStudyApp/Assets.xcassets/Icons/tab-learn-active.imageset/Contents.json @@ -0,0 +1,10 @@ +{ + "images" : [ + { + "filename" : "tab-learn-active.svg", + "idiom" : "universal" + } + ], + "info" : { "author" : "xcode", "version" : 1 }, + "properties" : { "preserves-vector-representation" : true } +} diff --git a/AIStudyApp/AIStudyApp/Assets.xcassets/Icons/tab-learn-active.imageset/tab-learn-active.svg b/AIStudyApp/AIStudyApp/Assets.xcassets/Icons/tab-learn-active.imageset/tab-learn-active.svg new file mode 100644 index 0000000..1ea99cf --- /dev/null +++ b/AIStudyApp/AIStudyApp/Assets.xcassets/Icons/tab-learn-active.imageset/tab-learn-active.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/AIStudyApp/AIStudyApp/Assets.xcassets/Icons/tab-learn-active.imageset/tab-learn.svg b/AIStudyApp/AIStudyApp/Assets.xcassets/Icons/tab-learn-active.imageset/tab-learn.svg new file mode 100644 index 0000000..be50f58 --- /dev/null +++ b/AIStudyApp/AIStudyApp/Assets.xcassets/Icons/tab-learn-active.imageset/tab-learn.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/AIStudyApp/AIStudyApp/Assets.xcassets/Icons/tab-learn.imageset/tab-learn.svg b/AIStudyApp/AIStudyApp/Assets.xcassets/Icons/tab-learn.imageset/tab-learn.svg index be50f58..d430c3b 100644 --- a/AIStudyApp/AIStudyApp/Assets.xcassets/Icons/tab-learn.imageset/tab-learn.svg +++ b/AIStudyApp/AIStudyApp/Assets.xcassets/Icons/tab-learn.imageset/tab-learn.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/AIStudyApp/AIStudyApp/ContentView.swift b/AIStudyApp/AIStudyApp/ContentView.swift index 1bd241e..6ed2d84 100644 --- a/AIStudyApp/AIStudyApp/ContentView.swift +++ b/AIStudyApp/AIStudyApp/ContentView.swift @@ -51,7 +51,7 @@ struct ContentView: View { .background(Color.zxCanvas.ignoresSafeArea()) } .tabItem { - Label("学习", image: "tab-learn") + Label("学习", image: selectedTab == "study" ? "tab-learn-active" : "tab-learn") } .tag("study")