UI 간격 조정

This commit is contained in:
Yu Sung 2025-01-09 06:05:21 +09:00
parent 3a0ca5b945
commit 4a552dabe2
2 changed files with 34 additions and 46 deletions

View File

@ -57,7 +57,7 @@ struct ContentMainView: View {
.strokeBorder(lineWidth: 1) .strokeBorder(lineWidth: 1)
.foregroundColor(Color.graybb) .foregroundColor(Color.graybb)
) )
.padding(.bottom, 26.7) .padding(.bottom, 40)
.padding(.horizontal, 13.3) .padding(.horizontal, 13.3)
.onTapGesture { .onTapGesture {
UserDefaults.set("", forKey: .searchChannel) UserDefaults.set("", forKey: .searchChannel)
@ -65,7 +65,7 @@ struct ContentMainView: View {
} }
ContentMainCreatorRankingView() ContentMainCreatorRankingView()
.padding(.bottom, 26.7) .padding(.bottom, 40)
.padding(.horizontal, 13.3) .padding(.horizontal, 13.3)
ContentMainRecommendSeriesView() ContentMainRecommendSeriesView()

View File

@ -16,14 +16,7 @@ struct SearchChannelView: View {
var body: some View { var body: some View {
BaseView(isLoading: $viewModel.isLoading) { BaseView(isLoading: $viewModel.isLoading) {
VStack(spacing: 0) { VStack(spacing: 0) {
HStack(spacing: 0) { DetailNavigationBar(title: "채널 탐색")
Image("ic_back")
.resizable()
.frame(width: 20, height: 20)
.padding(13.3)
.onTapGesture {
AppState.shared.back()
}
HStack(spacing: 0) { HStack(spacing: 0) {
Image("ic_title_search_black") Image("ic_title_search_black")
@ -57,11 +50,7 @@ struct SearchChannelView: View {
.strokeBorder(lineWidth: 1) .strokeBorder(lineWidth: 1)
.foregroundColor(Color.graybb) .foregroundColor(Color.graybb)
) )
}
.padding(.horizontal, 13.3) .padding(.horizontal, 13.3)
.frame(height: 50)
.background(Color.black)
.padding(.top, 13.3)
ScrollView(.vertical, showsIndicators: false) { ScrollView(.vertical, showsIndicators: false) {
if viewModel.channelResponses.count > 0 { if viewModel.channelResponses.count > 0 {
@ -91,13 +80,12 @@ struct SearchChannelView: View {
Text("검색 결과가 없습니다.") Text("검색 결과가 없습니다.")
.font(.custom(Font.medium.rawValue, size: 18.3)) .font(.custom(Font.medium.rawValue, size: 18.3))
.foregroundColor(.white) .foregroundColor(.white)
.padding(.top, 40) .padding(.top, 20)
} }
} }
.padding(.vertical, 40) .padding(.vertical, 20)
.padding(.horizontal, 26.7)
}
.padding(.horizontal, 13.3) .padding(.horizontal, 13.3)
}
.popup(isPresented: $viewModel.isShowPopup, type: .toast, position: .top, autohideIn: 2) { .popup(isPresented: $viewModel.isShowPopup, type: .toast, position: .top, autohideIn: 2) {
GeometryReader { geo in GeometryReader { geo in
HStack { HStack {