contentShape 추가
This commit is contained in:
parent
b2f0975ad1
commit
5b0cb44645
|
@ -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) }
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue