feat: 메인 홈

- 캔 충전 아이콘 변경
- 검색, 구매목록 아이콘 추가
This commit is contained in:
Yu Sung
2025-07-15 00:16:05 +09:00
parent 61b2f9cd89
commit 8aa8c3e9ec
7 changed files with 79 additions and 2 deletions

View File

@@ -0,0 +1,21 @@
{
"images" : [
{
"filename" : "ic_can_circle.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

View File

@@ -0,0 +1,21 @@
{
"images" : [
{
"filename" : "ic_search_white.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 432 B

View File

@@ -0,0 +1,21 @@
{
"images" : [
{
"filename" : "ic_storage.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 375 B

View File

@@ -18,18 +18,32 @@ struct HomeTabView: View {
BaseView(isLoading: $viewModel.isLoading) { BaseView(isLoading: $viewModel.isLoading) {
ZStack(alignment: .bottomTrailing) { ZStack(alignment: .bottomTrailing) {
VStack(alignment: .leading, spacing: 0) { VStack(alignment: .leading, spacing: 0) {
HStack(spacing: 0) { HStack(spacing: 24) {
Image("img_text_logo") Image("img_text_logo")
Spacer() Spacer()
if !token.trimmingCharacters(in: .whitespacesAndNewlines).isEmpty { if !token.trimmingCharacters(in: .whitespacesAndNewlines).isEmpty {
Image("ic_can") Image("ic_search_white")
.onTapGesture {
AppState
.shared
.setAppStep(step: .search)
}
Image("ic_can_circle")
.onTapGesture { .onTapGesture {
AppState AppState
.shared .shared
.setAppStep(step: .canCharge(refresh: {})) .setAppStep(step: .canCharge(refresh: {}))
} }
Image("ic_storage")
.onTapGesture {
AppState
.shared
.setAppStep(step: .myBox(currentTab: .orderlist))
}
} }
} }
.padding(.horizontal, 24) .padding(.horizontal, 24)