From b5bda07495e4fca8462cc78bdedc500100bfa39b Mon Sep 17 00:00:00 2001 From: joho2022 Date: Sat, 18 Jan 2025 15:23:10 +0900 Subject: [PATCH] =?UTF-8?q?[Chore]=20#33=20-=20=EB=A7=88=EC=BC=93=20?= =?UTF-8?q?=EB=B0=8F=20=ED=83=90=EC=83=89=20=EC=83=81=ED=92=88=20=EC=95=84?= =?UTF-8?q?=EC=9D=B4=ED=85=9C=20=EB=8F=99=EC=A0=81=EC=9C=BC=EB=A1=9C=20?= =?UTF-8?q?=EB=84=88=EB=B9=84=20=EA=B0=9C=EC=84=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Napzakmarket-iOS.xcodeproj/project.pbxproj | 4 ++-- .../Presentation/Market/View/MarketView.swift | 9 +++++---- .../Presentation/Search/View/SearchView.swift | 9 +++++---- 3 files changed, 12 insertions(+), 10 deletions(-) diff --git a/Napzakmarket-iOS/Napzakmarket-iOS.xcodeproj/project.pbxproj b/Napzakmarket-iOS/Napzakmarket-iOS.xcodeproj/project.pbxproj index 0aaafef..b61653d 100644 --- a/Napzakmarket-iOS/Napzakmarket-iOS.xcodeproj/project.pbxproj +++ b/Napzakmarket-iOS/Napzakmarket-iOS.xcodeproj/project.pbxproj @@ -923,7 +923,7 @@ CODE_SIGN_STYLE = Automatic; CURRENT_PROJECT_VERSION = 1; DEVELOPMENT_ASSET_PATHS = "\"Napzakmarket-iOS/Application/Preview Content\""; - DEVELOPMENT_TEAM = ""; + DEVELOPMENT_TEAM = 9H57LB393L; ENABLE_PREVIEWS = YES; GENERATE_INFOPLIST_FILE = YES; INFOPLIST_FILE = "Napzakmarket-iOS/Info.plist"; @@ -956,7 +956,7 @@ CODE_SIGN_STYLE = Automatic; CURRENT_PROJECT_VERSION = 1; DEVELOPMENT_ASSET_PATHS = "\"Napzakmarket-iOS/Application/Preview Content\""; - DEVELOPMENT_TEAM = ""; + DEVELOPMENT_TEAM = 9H57LB393L; ENABLE_PREVIEWS = YES; GENERATE_INFOPLIST_FILE = YES; INFOPLIST_FILE = "Napzakmarket-iOS/Info.plist"; diff --git a/Napzakmarket-iOS/Napzakmarket-iOS/Presentation/Market/View/MarketView.swift b/Napzakmarket-iOS/Napzakmarket-iOS/Presentation/Market/View/MarketView.swift index 5d71e1a..b64a2bb 100644 --- a/Napzakmarket-iOS/Napzakmarket-iOS/Presentation/Market/View/MarketView.swift +++ b/Napzakmarket-iOS/Napzakmarket-iOS/Presentation/Market/View/MarketView.swift @@ -16,10 +16,12 @@ struct MarketView: View { @State private var selectedIndex = 0 @State private var sellProducts = ProductModel.sellDummyList() @State private var buyProducts = ProductModel.buyDummyList() + + let width = (UIScreen.main.bounds.width - 55) / 2 private let columns = [ GridItem(.flexible(), spacing: 15), - GridItem(.flexible(), spacing: 15) + GridItem(.flexible()) ] var body: some View { @@ -77,7 +79,7 @@ struct MarketView: View { ProductItemView( product: product, isLikeButtonExist: false, - width: 160 + width: width ) } } else { @@ -85,12 +87,11 @@ struct MarketView: View { ProductItemView( product: product, isLikeButtonExist: false, - width: 160 + width: width ) } } } - .frame(height: 254) } .padding(.horizontal, 20) } diff --git a/Napzakmarket-iOS/Napzakmarket-iOS/Presentation/Search/View/SearchView.swift b/Napzakmarket-iOS/Napzakmarket-iOS/Presentation/Search/View/SearchView.swift index b5781eb..6432183 100644 --- a/Napzakmarket-iOS/Napzakmarket-iOS/Presentation/Search/View/SearchView.swift +++ b/Napzakmarket-iOS/Napzakmarket-iOS/Presentation/Search/View/SearchView.swift @@ -15,11 +15,13 @@ struct SearchView: View { @State var sellProducts = ProductModel.sellDummyList() @State var buyProducts = ProductModel.buyDummyList() + let width = (UIScreen.main.bounds.width - 55) / 2 + //MARK: - Properties private let columns = [ GridItem(.flexible(), spacing: 15), - GridItem(.flexible(), spacing: 15) + GridItem(.flexible()) ] //MARK: - Main Body @@ -134,7 +136,7 @@ extension SearchView { ProductItemView( product: product, isLikeButtonExist: true, - width: 160 + width: width ) } } else if selectedIndex == 1 { @@ -142,12 +144,11 @@ extension SearchView { ProductItemView( product: product, isLikeButtonExist: true, - width: 160 + width: width ) } } } - .frame(height: 254) } } .padding(.horizontal, 20)