커뮤니티 댓글, 팬토크, 콘텐츠 댓글

- 프로필 이미지 터치시 차단, 신고가 가능한 유저 프로필 표시
This commit is contained in:
Yu Sung
2024-09-07 03:58:52 +09:00
parent 17ead38524
commit 7c5b30335e
15 changed files with 537 additions and 53 deletions

View File

@@ -16,6 +16,7 @@ struct UserProfileFanTalkCheersItemView: View {
let modifyCheer: (Int, String) -> Void
let reportPopup: (Int) -> Void
let onClickDelete: (Int) -> Void
let onClickProfile: (Int) -> Void
@State var replyContent: String = ""
@State var isShowInputReply = false
@@ -34,6 +35,11 @@ struct UserProfileFanTalkCheersItemView: View {
.resizable()
.frame(width: 33.3, height: 33.3)
.clipShape(Circle())
.onTapGesture {
if UserDefaults.int(forKey: .userId) != cheersItem.memberId {
onClickProfile(cheersItem.memberId)
}
}
VStack(alignment: .leading, spacing: 0) {
Text("\(cheersItem.nickname)")
@@ -51,10 +57,10 @@ struct UserProfileFanTalkCheersItemView: View {
.autocapitalization(.none)
.disableAutocorrection(true)
.font(.custom(Font.medium.rawValue, size: 13.3))
.foregroundColor(Color(hex: "eeeeee"))
.foregroundColor(Color.grayee)
.padding(13.3)
.background(Color(hex: "232323"))
.accentColor(Color(hex: "3bb9f1"))
.background(Color.gray23)
.accentColor(Color.button)
.keyboardType(.default)
.cornerRadius(10)
.overlay(
@@ -65,7 +71,7 @@ struct UserProfileFanTalkCheersItemView: View {
Text("수정")
.font(.custom(Font.bold.rawValue, size: 13.3))
.foregroundColor(Color(hex: "ffffff"))
.foregroundColor(Color.white)
.padding(13.3)
.background(Color.button)
.cornerRadius(6.7)
@@ -78,7 +84,7 @@ struct UserProfileFanTalkCheersItemView: View {
.font(.custom(Font.bold.rawValue, size: 13.3))
.foregroundColor(Color.button)
.padding(13.3)
.background(Color(hex: "222222"))
.background(Color.gray22)
.cornerRadius(6.7)
.onTapGesture {
isModeModify = false
@@ -100,23 +106,23 @@ struct UserProfileFanTalkCheersItemView: View {
.autocapitalization(.none)
.disableAutocorrection(true)
.font(.custom(Font.medium.rawValue, size: 13.3))
.foregroundColor(Color(hex: "eeeeee"))
.foregroundColor(Color.grayee)
.padding(13.3)
.background(Color(hex: "232323"))
.accentColor(Color(hex: "3bb9f1"))
.background(Color.gray23)
.accentColor(Color.button)
.keyboardType(.default)
.cornerRadius(10)
.overlay(
RoundedRectangle(cornerRadius: 10)
.strokeBorder(lineWidth: 1)
.foregroundColor(Color(hex: "3bb9f1"))
.foregroundColor(Color.button)
)
Text("등록")
.font(.custom(Font.bold.rawValue, size: 13.3))
.foregroundColor(Color(hex: "ffffff"))
.foregroundColor(Color.white)
.padding(13.3)
.background(Color(hex: "3bb9f1"))
.background(Color.button)
.cornerRadius(6.7)
.onTapGesture {
if cheersItem.replyList.count > 0 {
@@ -182,7 +188,7 @@ struct UserProfileFanTalkCheersItemView: View {
Rectangle()
.frame(height: 1)
.foregroundColor(Color(hex: "909090").opacity(0.5))
.foregroundColor(Color.gray90.opacity(0.5))
.padding(.top, 13.3)
}
.frame(width: screenSize().width - 26.7)
@@ -192,7 +198,7 @@ struct UserProfileFanTalkCheersItemView: View {
if cheersItem.memberId != UserDefaults.int(forKey: .userId) {
Text("신고하기")
.font(.custom(Font.medium.rawValue, size: 14))
.foregroundColor(Color(hex: "777777"))
.foregroundColor(Color.gray77)
.onTapGesture {
reportPopup(cheersItem.cheersId)
isShowPopupMenu = false
@@ -202,7 +208,7 @@ struct UserProfileFanTalkCheersItemView: View {
if cheersItem.memberId == UserDefaults.int(forKey: .userId) {
Text("수정")
.font(.custom(Font.medium.rawValue, size: 14))
.foregroundColor(Color(hex: "777777"))
.foregroundColor(Color.gray77)
.onTapGesture {
isModeModify = true
isShowPopupMenu = false
@@ -215,7 +221,7 @@ struct UserProfileFanTalkCheersItemView: View {
{
Text("삭제")
.font(.custom(Font.medium.rawValue, size: 14))
.foregroundColor(Color(hex: "777777"))
.foregroundColor(Color.gray77)
.onTapGesture {
onClickDelete(cheersItem.cheersId)
isShowPopupMenu = false
@@ -223,7 +229,7 @@ struct UserProfileFanTalkCheersItemView: View {
}
}
.padding(10)
.background(Color(hex: "222222"))
.background(Color.gray22)
}
}
.contentShape(Rectangle())