contentShape 추가

This commit is contained in:
Yu Sung 2023-09-14 12:50:58 +09:00
parent b2f0975ad1
commit 5b0cb44645
2 changed files with 6 additions and 1 deletions

View File

@ -25,6 +25,7 @@ struct LiveRoomTopCreatorView: View {
.scaledToFill() .scaledToFill()
.frame(width: 33.3, height: 33.3) .frame(width: 33.3, height: 33.3)
.clipShape(Circle()) .clipShape(Circle())
.contentShape(Circle())
.onTapGesture { onClickProfile() } .onTapGesture { onClickProfile() }
Image("ic_crown") Image("ic_crown")
@ -37,6 +38,7 @@ struct LiveRoomTopCreatorView: View {
if creatorId != UserDefaults.int(forKey: .userId) { if creatorId != UserDefaults.int(forKey: .userId) {
Image(isFollowing ? "btn_following" : "btn_follow") Image(isFollowing ? "btn_following" : "btn_follow")
.contentShape(Rectangle())
.onTapGesture { onClickFollow(isFollowing) } .onTapGesture { onClickFollow(isFollowing) }
} }
} }

View File

@ -172,7 +172,6 @@ struct LiveRoomView: View {
lineLimit: viewModel.isExpandNotice ? Int.max : 1 lineLimit: viewModel.isExpandNotice ? Int.max : 1
) { ) {
UIApplication.shared.open($0) UIApplication.shared.open($0)
} }
.fixedSize(horizontal: false, vertical: true) .fixedSize(horizontal: false, vertical: true)
.lineSpacing(6) .lineSpacing(6)
@ -182,6 +181,7 @@ struct LiveRoomView: View {
.frame(width: screenSize().width, alignment: .leading) .frame(width: screenSize().width, alignment: .leading)
.background(Color(hex: "3d2a6c")) .background(Color(hex: "3d2a6c"))
.padding(.top, 10) .padding(.top, 10)
.contentShape(Rectangle())
.onTapGesture { .onTapGesture {
viewModel.isExpandNotice.toggle() viewModel.isExpandNotice.toggle()
} }
@ -726,6 +726,7 @@ struct LiveRoomView: View {
"ic_notice_selected" : "ic_notice_selected" :
"ic_notice_normal" "ic_notice_normal"
) )
.contentShape(Rectangle())
.onTapGesture { .onTapGesture {
viewModel.isShowNotice.toggle() viewModel.isShowNotice.toggle()
} }
@ -749,6 +750,7 @@ struct LiveRoomView: View {
.strokeBorder(lineWidth: 1) .strokeBorder(lineWidth: 1)
.foregroundColor(Color(hex: "eeeeee")) .foregroundColor(Color(hex: "eeeeee"))
) )
.contentShape(Rectangle())
.onTapGesture { .onTapGesture {
viewModel.isShowDonationRankingPopup = true viewModel.isShowDonationRankingPopup = true
} }
@ -770,6 +772,7 @@ struct LiveRoomView: View {
.strokeBorder(lineWidth: 1) .strokeBorder(lineWidth: 1)
.foregroundColor(Color(hex: "eeeeee")) .foregroundColor(Color(hex: "eeeeee"))
) )
.contentShape(Rectangle())
.onTapGesture { .onTapGesture {
viewModel.isShowProfileList = true viewModel.isShowProfileList = true
} }