Skip to content

Commit

Permalink
Merge pull request #142 from DroidKaigi/feature/bottom_tab_icon
Browse files Browse the repository at this point in the history
[iOS]Added bottom tab icons
  • Loading branch information
shin-usu authored Jul 17, 2024
2 parents ae4b353 + 910b21c commit 381b9d6
Show file tree
Hide file tree
Showing 12 changed files with 128 additions and 5 deletions.
6 changes: 6 additions & 0 deletions app-ios/Sources/App/Resources/Media.xcassets/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"info" : {
"author" : "xcode",
"version" : 1
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"images" : [
{
"filename" : "ic_fav.svg",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
},
"properties" : {
"preserves-vector-representation" : true
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"images" : [
{
"filename" : "ic_info.svg",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
},
"properties" : {
"preserves-vector-representation" : true
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"images" : [
{
"filename" : "ic_map.svg",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
},
"properties" : {
"preserves-vector-representation" : true
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"images" : [
{
"filename" : "ic_profileCard.svg",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
},
"properties" : {
"preserves-vector-representation" : true
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"images" : [
{
"filename" : "ic_timetable.svg",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
},
"properties" : {
"preserves-vector-representation" : true
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 7 additions & 5 deletions app-ios/Sources/App/RootView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import StaffFeature
import SwiftUI
import TimetableDetailFeature
import TimetableFeature
import Theme

private enum Tab {
case timetable
Expand All @@ -32,7 +33,7 @@ public struct RootView: View {
.tabItem {
Label(
title: { Text("Timetable") },
icon: { Image(systemName: "42.circle") }
icon: { Image(.icTimetable).renderingMode(.template) }
)
}

Expand All @@ -41,7 +42,7 @@ public struct RootView: View {
.tabItem {
Label(
title: { Text("Event Map") },
icon: { Image(systemName: "42.circle") }
icon: { Image(.icMap).renderingMode(.template) }
)
}

Expand All @@ -55,7 +56,7 @@ public struct RootView: View {
.tabItem {
Label(
title: { Text("Favorite") },
icon: { Image(systemName: "42.circle") }
icon: { Image(.icFav).renderingMode(.template) }
)
}

Expand All @@ -64,7 +65,7 @@ public struct RootView: View {
.tabItem {
Label(
title: { Text("About") },
icon: { Image(systemName: "42.circle") }
icon: { Image(.icInfo).renderingMode(.template) }
)
}

Expand All @@ -73,10 +74,11 @@ public struct RootView: View {
.tabItem {
Label(
title: { Text("ID Card") },
icon: { Image(systemName: "42.circle") }
icon: { Image(.icProfileCard).renderingMode(.template) }
)
}
}
.tint(AssetColors.Custom.arcticFox.swiftUIColor)
}

@MainActor
Expand Down

0 comments on commit 381b9d6

Please sign in to comment.