File tree Expand file tree Collapse file tree
Neki-iOS/APP/Sources/MainTab Expand file tree Collapse file tree Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments