Skip to content

Commit

Permalink
Fix: 레이아웃 수정
Browse files Browse the repository at this point in the history
탭 높이, 간격, 폰트 사이즈 등 수정했습니다
  • Loading branch information
cinnamonfor6214 committed Jan 24, 2025
1 parent fff3fa8 commit 24cf0c2
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions dorundorun/dorundorun/App/TabbarView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ struct TabbarView: View {
}

CustomTabView(selectedTab: $seletedTab)
.frame(height: 60)
.frame(height: 99)
.background(Color.white)
}
.edgesIgnoringSafeArea(.bottom)
Expand All @@ -46,14 +46,12 @@ struct CustomTabView: View {
VStack(spacing : 0){

Rectangle()
.frame(height: 4)
.frame(height: 3)
.foregroundStyle(Color("nutral100"))

Spacer()
ZStack{
HStack{
Spacer()

Button(action: {selectedTab = .home}){
ButtonView(
imageName: "home-30",
Expand Down Expand Up @@ -92,10 +90,8 @@ struct CustomTabView: View {
isSelected: selectedTab == .myPage
)
}

Spacer()

}
.frame(width: 313, height: 51)
.padding(.vertical, 15)
}
}
Expand All @@ -105,17 +101,18 @@ struct CustomTabView: View {


struct ButtonView : View {
var imageName : String
var title: String
var isSelected: Bool
let imageName : String
let title: String
let isSelected: Bool

var body: some View{
VStack{
Image(imageName)
.renderingMode(.template)
.foregroundStyle(isSelected ? Color("primary200") : Color("nutral500"))
.padding(.vertical, 7)
Text(title)
.font(.custom("Jalnan2", size: 12))
.font(.custom("SUIT", size: 10))
.foregroundStyle(isSelected ? Color("primary200") : Color("nutral600"))
// .padding(.bottom, 40)
}
Expand Down

0 comments on commit 24cf0c2

Please sign in to comment.