콘텐츠 댓글 리스트
- 비밀댓글은 닉네임 옆에 '비밀댓글' 마크 추가
This commit is contained in:
		
							
								
								
									
										21
									
								
								SodaLive/Resources/Assets.xcassets/btn_square_select_checked.imageset/Contents.json
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										21
									
								
								SodaLive/Resources/Assets.xcassets/btn_square_select_checked.imageset/Contents.json
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,21 @@ | ||||
| { | ||||
|   "images" : [ | ||||
|     { | ||||
|       "idiom" : "universal", | ||||
|       "scale" : "1x" | ||||
|     }, | ||||
|     { | ||||
|       "idiom" : "universal", | ||||
|       "scale" : "2x" | ||||
|     }, | ||||
|     { | ||||
|       "filename" : "btn_square_select_checked.png", | ||||
|       "idiom" : "universal", | ||||
|       "scale" : "3x" | ||||
|     } | ||||
|   ], | ||||
|   "info" : { | ||||
|     "author" : "xcode", | ||||
|     "version" : 1 | ||||
|   } | ||||
| } | ||||
							
								
								
									
										
											BIN
										
									
								
								SodaLive/Resources/Assets.xcassets/btn_square_select_checked.imageset/btn_square_select_checked.png
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								SodaLive/Resources/Assets.xcassets/btn_square_select_checked.imageset/btn_square_select_checked.png
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| After Width: | Height: | Size: 888 B | 
							
								
								
									
										21
									
								
								SodaLive/Resources/Assets.xcassets/btn_square_select_normal.imageset/Contents.json
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										21
									
								
								SodaLive/Resources/Assets.xcassets/btn_square_select_normal.imageset/Contents.json
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,21 @@ | ||||
| { | ||||
|   "images" : [ | ||||
|     { | ||||
|       "idiom" : "universal", | ||||
|       "scale" : "1x" | ||||
|     }, | ||||
|     { | ||||
|       "idiom" : "universal", | ||||
|       "scale" : "2x" | ||||
|     }, | ||||
|     { | ||||
|       "filename" : "btn_square_select_normal.png", | ||||
|       "idiom" : "universal", | ||||
|       "scale" : "3x" | ||||
|     } | ||||
|   ], | ||||
|   "info" : { | ||||
|     "author" : "xcode", | ||||
|     "version" : 1 | ||||
|   } | ||||
| } | ||||
							
								
								
									
										
											BIN
										
									
								
								SodaLive/Resources/Assets.xcassets/btn_square_select_normal.imageset/btn_square_select_normal.png
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								SodaLive/Resources/Assets.xcassets/btn_square_select_normal.imageset/btn_square_select_normal.png
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| After Width: | Height: | Size: 835 B | 
| @@ -32,13 +32,25 @@ struct AudioContentCommentItemView: View { | ||||
|                         .clipShape(Circle()) | ||||
|                      | ||||
|                     VStack(alignment: .leading, spacing: 0) { | ||||
|                         Text(commentItem.nickname) | ||||
|                             .font(.custom(Font.medium.rawValue, size: 12)) | ||||
|                             .foregroundColor(Color.gray90) | ||||
|                         HStack(spacing: 6.7) { | ||||
|                             Text(commentItem.nickname) | ||||
|                                 .font(.custom(Font.medium.rawValue, size: 12)) | ||||
|                                 .foregroundColor(Color.gray90) | ||||
|                              | ||||
|                             if commentItem.isSecret { | ||||
|                                 Text("비밀댓글") | ||||
|                                     .font(.custom(Font.medium.rawValue, size: 11)) | ||||
|                                     .foregroundColor(Color.grayee) | ||||
|                                     .padding(.horizontal, 4) | ||||
|                                     .padding(.vertical, 2) | ||||
|                                     .background(Color.button.opacity(0.2)) | ||||
|                                     .cornerRadius(3.3) | ||||
|                             } | ||||
|                         } | ||||
|                          | ||||
|                         Text(commentItem.date) | ||||
|                             .font(.custom(Font.medium.rawValue, size: 10.3)) | ||||
|                             .foregroundColor(Color(hex: "525252")) | ||||
|                             .foregroundColor(Color.gray52) | ||||
|                             .padding(.top, 4) | ||||
|                     } | ||||
|                      | ||||
|   | ||||
| @@ -55,7 +55,7 @@ struct AudioContentCommentListView: View { | ||||
|                         HStack(spacing: 8) { | ||||
|                             Spacer() | ||||
|                              | ||||
|                             Image(viewModel.isSecret ? "btn_select_checked" : "btn_select_normal") | ||||
|                             Image(viewModel.isSecret ? "btn_square_select_checked" : "btn_square_select_normal") | ||||
|                                 .resizable() | ||||
|                                 .frame(width: 20, height: 20) | ||||
|                                 .onTapGesture { | ||||
| @@ -64,7 +64,7 @@ struct AudioContentCommentListView: View { | ||||
|                              | ||||
|                             Text("비밀댓글") | ||||
|                                 .font(.custom(Font.medium.rawValue, size: 12)) | ||||
|                                 .foregroundColor(Color.grayee) | ||||
|                                 .foregroundColor(viewModel.isSecret ? Color.button : Color.grayee) | ||||
|                                 .onTapGesture { | ||||
|                                     viewModel.isSecret.toggle() | ||||
|                                 } | ||||
|   | ||||
| @@ -18,6 +18,7 @@ struct GetAudioContentCommentListItem: Decodable { | ||||
|     let nickname: String | ||||
|     let profileUrl: String | ||||
|     let comment: String | ||||
|     let isSecret: Bool | ||||
|     let donationCan: Int | ||||
|     let date: String | ||||
|     let replyCount: Int | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Yu Sung
					Yu Sung