diff --git a/YELLO-iOS/YELLO-iOS/Presentation/Around/Cell/AroundSkeletonTableViewCell.swift b/YELLO-iOS/YELLO-iOS/Presentation/Around/Cell/AroundSkeletonTableViewCell.swift index 7b0a20b8..1c47c788 100644 --- a/YELLO-iOS/YELLO-iOS/Presentation/Around/Cell/AroundSkeletonTableViewCell.swift +++ b/YELLO-iOS/YELLO-iOS/Presentation/Around/Cell/AroundSkeletonTableViewCell.swift @@ -147,10 +147,10 @@ final class AroundSkeletonTableViewCell: UITableViewCell { extension AroundSkeletonTableViewCell { func showShimmer() { - self.genderImageView.animateShimmer() - self.genderLabel.animateShimmer() - self.receiverLabel.animateShimmer() - self.nameLabel.animateShimmer() - self.keywordLabel.animateShimmer() + let shimmerArray = [genderImageView, genderLabel, receiverLabel, nameLabel, keywordLabel] + + shimmerArray.forEach { + $0.animateShimmer() + } } } diff --git a/YELLO-iOS/YELLO-iOS/Presentation/MyYello/Cells/MyYelloSkeletonTableViewCell.swift b/YELLO-iOS/YELLO-iOS/Presentation/MyYello/Cells/MyYelloSkeletonTableViewCell.swift index 79063ce3..ab9376e5 100644 --- a/YELLO-iOS/YELLO-iOS/Presentation/MyYello/Cells/MyYelloSkeletonTableViewCell.swift +++ b/YELLO-iOS/YELLO-iOS/Presentation/MyYello/Cells/MyYelloSkeletonTableViewCell.swift @@ -95,8 +95,10 @@ final class MyYelloSkeletonTableViewCell: UITableViewCell { extension MyYelloSkeletonTableViewCell { func showShimmer() { - self.genderImageView.animateShimmer() - self.titleLabel.animateShimmer() - self.timeLabel.animateShimmer() + let shimmerArray = [genderImageView, titleLabel, timeLabel] + + shimmerArray.forEach { + $0.animateShimmer() + } } } diff --git a/YELLO-iOS/YELLO-iOS/Presentation/Profile/Main/Cell/MyFriendSkeletonTableViewCell.swift b/YELLO-iOS/YELLO-iOS/Presentation/Profile/Main/Cell/MyFriendSkeletonTableViewCell.swift index 27a65da9..9b328613 100644 --- a/YELLO-iOS/YELLO-iOS/Presentation/Profile/Main/Cell/MyFriendSkeletonTableViewCell.swift +++ b/YELLO-iOS/YELLO-iOS/Presentation/Profile/Main/Cell/MyFriendSkeletonTableViewCell.swift @@ -95,8 +95,10 @@ extension MyFriendSkeletonTableViewCell { } func showShimmer() { - self.profileImageView.animateShimmer() - self.nameLabel.animateShimmer() - self.schoolLabel.animateShimmer() + let shimmerArray = [profileImageView, nameLabel, schoolLabel] + + shimmerArray.forEach { + $0.animateShimmer() + } } }