@@ -353,7 +353,7 @@ fileprivate struct CommunityPostListCard: View {
353353 . pretendard ( . caption( . base) )
354354 . foregroundColor ( Color . textG600)
355355
356- Image ( . communityComment )
356+ Image ( . communityCommentFill )
357357 . resizable ( )
358358 . frame ( width: 12 , height: 12 )
359359
@@ -419,7 +419,7 @@ fileprivate struct CommunityPostFeedCard: View {
419419 . pretendard ( . caption( . base) )
420420 . foregroundColor ( Color . textG600)
421421
422- Image ( . communityComment )
422+ Image ( . communityCommentFill )
423423 . resizable ( )
424424 . frame ( width: 12 , height: 12 )
425425
@@ -443,42 +443,4 @@ fileprivate struct CommunityPostFeedCard: View {
443443 }
444444}
445445
446- struct AsyncThumbnailImage : View {
447- private let imageURL : String ?
448- private let width : CGFloat ?
449- private let height : CGFloat ?
450- private let cornerRadius : CGFloat
451-
452- init (
453- imageURL: String ? ,
454- width: CGFloat ? = nil ,
455- height: CGFloat ? = nil ,
456- cornerRadius: CGFloat = 8
457- ) {
458- self . imageURL = imageURL
459- self . width = width
460- self . height = height
461- self . cornerRadius = cornerRadius
462- }
463-
464- var body : some View {
465- content
466- . frame ( width: width, height: height)
467- . clipShape ( RoundedRectangle ( cornerRadius: cornerRadius) )
468- }
469-
470- @ViewBuilder
471- private var content : some View {
472- if let imageURL = imageURL,
473- !imageURL. isEmpty,
474- let url = URL ( string: imageURL) {
475- AsyncImage ( url: url) { phase in
476- if case . success( let image) = phase {
477- image
478- . resizable ( )
479- . aspectRatio ( contentMode: . fill)
480- }
481- }
482- }
483- }
484- }
446+
0 commit comments