Skip to content

Commit a8ec0aa

Browse files
Merge pull request #152 from YAPP-Github/style/#151-tabbar-layout
2 parents 0419801 + 929ccea commit a8ec0aa

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

Neki-iOS/APP/Sources/MainTab/NekiTabBar.swift

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,19 +37,19 @@ struct NekiTabBar: View {
3737
let onAddTap: () -> Void
3838

3939
var body: some View {
40-
HStack {
40+
HStack(spacing: .zero) {
4141
ForEach(NekiTab.allCases, id: \.self) { tab in
4242
Button {
4343
guard case .add = tab else { return selectedTab = tab }
4444
onAddTap()
4545
} label: {
46-
VStack(alignment: .center, spacing: 4) {
46+
VStack(alignment: .center, spacing: 2) {
4747
ZStack {
4848
if case .add = tab {
4949
Color.clear.frame(width: 26, height: 26)
5050
.overlay {
5151
Image(tab.icon(isSelected: true))
52-
.offset(y: -8)
52+
.offset(y: -10)
5353
}
5454
} else {
5555
Image(tab.icon(isSelected: selectedTab == tab))
@@ -62,10 +62,12 @@ struct NekiTabBar: View {
6262
.foregroundColor(selectedTab == tab ? .gray800 : .gray500)
6363
}
6464
.frame(maxWidth: .infinity)
65+
.padding(.vertical, 2)
6566
}
6667
}
6768
}
69+
.frame(height: 52, alignment: .center)
6870
.background(.white)
69-
.shadow(color: .black.opacity(0.05), radius: 2, y: -2)
71+
.shadow(color: .black.opacity(0.04), radius: 5, y: -2)
7072
}
7173
}

0 commit comments

Comments
 (0)