응원글 수정 기능 추가
This commit is contained in:
		| @@ -45,10 +45,51 @@ struct UserProfileFanTalkCheersItemView: View { | ||||
|                             .foregroundColor(Color(hex: "525252")) | ||||
|                             .padding(.top, 8.3) | ||||
|                          | ||||
|                         Text("\(cheersItem.content)") | ||||
|                             .font(.custom(Font.medium.rawValue, size: 12)) | ||||
|                             .foregroundColor(Color(hex: "777777")) | ||||
|                         if isModeModify { | ||||
|                             HStack(spacing: 10) { | ||||
|                                 TextField("", text: $cheers) | ||||
|                                     .autocapitalization(.none) | ||||
|                                     .disableAutocorrection(true) | ||||
|                                     .font(.custom(Font.medium.rawValue, size: 13.3)) | ||||
|                                     .foregroundColor(Color(hex: "eeeeee")) | ||||
|                                     .padding(13.3) | ||||
|                                     .background(Color(hex: "232323")) | ||||
|                                     .accentColor(Color(hex: "9970ff")) | ||||
|                                     .keyboardType(.default) | ||||
|                                     .cornerRadius(10) | ||||
|                                     .overlay( | ||||
|                                         RoundedRectangle(cornerRadius: 10) | ||||
|                                             .strokeBorder(lineWidth: 1) | ||||
|                                             .foregroundColor(Color(hex: "9970ff")) | ||||
|                                     ) | ||||
|                                  | ||||
|                                 Text("수정") | ||||
|                                     .font(.custom(Font.bold.rawValue, size: 13.3)) | ||||
|                                     .foregroundColor(Color(hex: "ffffff")) | ||||
|                                     .padding(13.3) | ||||
|                                     .background(Color(hex: "9970ff")) | ||||
|                                     .cornerRadius(6.7) | ||||
|                                     .onTapGesture { | ||||
|                                         modifyCheer(cheersItem.cheersId, cheers) | ||||
|                                     } | ||||
|                                  | ||||
|                                 Text("취소") | ||||
|                                     .font(.custom(Font.bold.rawValue, size: 13.3)) | ||||
|                                     .foregroundColor(Color(hex: "9970ff")) | ||||
|                                     .padding(13.3) | ||||
|                                     .background(Color(hex: "222222")) | ||||
|                                     .cornerRadius(6.7) | ||||
|                                     .onTapGesture { | ||||
|                                         isModeModify = false | ||||
|                                     } | ||||
|                             } | ||||
|                             .padding(.top, 13.3) | ||||
|                         } else { | ||||
|                             Text("\(cheersItem.content)") | ||||
|                                 .font(.custom(Font.medium.rawValue, size: 12)) | ||||
|                                 .foregroundColor(Color(hex: "777777")) | ||||
|                                 .padding(.top, 13.3) | ||||
|                         } | ||||
|                          | ||||
|                         if isShowInputReply { | ||||
|                             HStack(spacing: 10) { | ||||
| @@ -129,8 +170,10 @@ struct UserProfileFanTalkCheersItemView: View { | ||||
|                      | ||||
|                     Spacer() | ||||
|                      | ||||
|                     Image("ic_seemore_vertical") | ||||
|                         .onTapGesture { isShowPopupMenu = true } | ||||
|                     if !isModeModify { | ||||
|                         Image("ic_seemore_vertical") | ||||
|                             .onTapGesture { isShowPopupMenu = true } | ||||
|                     } | ||||
|                 } | ||||
|                  | ||||
|                 Rectangle() | ||||
| @@ -159,6 +202,7 @@ struct UserProfileFanTalkCheersItemView: View { | ||||
|                             .onTapGesture { | ||||
|                                 isModeModify = true | ||||
|                                 isShowPopupMenu = false | ||||
|                                 cheers = cheersItem.content | ||||
|                             } | ||||
|                     } | ||||
|                      | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Yu Sung
					Yu Sung