From 5b0cb4464584e3ebc0147a55e7bfb1a066d38d28 Mon Sep 17 00:00:00 2001 From: Yu Sung Date: Thu, 14 Sep 2023 12:50:58 +0900 Subject: [PATCH] =?UTF-8?q?contentShape=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SodaLive/Sources/Live/Room/LiveRoomTopCreatorView.swift | 2 ++ SodaLive/Sources/Live/Room/LiveRoomView.swift | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/SodaLive/Sources/Live/Room/LiveRoomTopCreatorView.swift b/SodaLive/Sources/Live/Room/LiveRoomTopCreatorView.swift index fe724f5..83b4428 100644 --- a/SodaLive/Sources/Live/Room/LiveRoomTopCreatorView.swift +++ b/SodaLive/Sources/Live/Room/LiveRoomTopCreatorView.swift @@ -25,6 +25,7 @@ struct LiveRoomTopCreatorView: View { .scaledToFill() .frame(width: 33.3, height: 33.3) .clipShape(Circle()) + .contentShape(Circle()) .onTapGesture { onClickProfile() } Image("ic_crown") @@ -37,6 +38,7 @@ struct LiveRoomTopCreatorView: View { if creatorId != UserDefaults.int(forKey: .userId) { Image(isFollowing ? "btn_following" : "btn_follow") + .contentShape(Rectangle()) .onTapGesture { onClickFollow(isFollowing) } } } diff --git a/SodaLive/Sources/Live/Room/LiveRoomView.swift b/SodaLive/Sources/Live/Room/LiveRoomView.swift index 3208f5a..c284eb0 100644 --- a/SodaLive/Sources/Live/Room/LiveRoomView.swift +++ b/SodaLive/Sources/Live/Room/LiveRoomView.swift @@ -172,7 +172,6 @@ struct LiveRoomView: View { lineLimit: viewModel.isExpandNotice ? Int.max : 1 ) { UIApplication.shared.open($0) - } .fixedSize(horizontal: false, vertical: true) .lineSpacing(6) @@ -182,6 +181,7 @@ struct LiveRoomView: View { .frame(width: screenSize().width, alignment: .leading) .background(Color(hex: "3d2a6c")) .padding(.top, 10) + .contentShape(Rectangle()) .onTapGesture { viewModel.isExpandNotice.toggle() } @@ -726,6 +726,7 @@ struct LiveRoomView: View { "ic_notice_selected" : "ic_notice_normal" ) + .contentShape(Rectangle()) .onTapGesture { viewModel.isShowNotice.toggle() } @@ -749,6 +750,7 @@ struct LiveRoomView: View { .strokeBorder(lineWidth: 1) .foregroundColor(Color(hex: "eeeeee")) ) + .contentShape(Rectangle()) .onTapGesture { viewModel.isShowDonationRankingPopup = true } @@ -770,6 +772,7 @@ struct LiveRoomView: View { .strokeBorder(lineWidth: 1) .foregroundColor(Color(hex: "eeeeee")) ) + .contentShape(Rectangle()) .onTapGesture { viewModel.isShowProfileList = true }