Skip to content

Commit

Permalink
Refactor [#242] skeletonTableViewCell 고차함수로 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
chaentopia committed Sep 20, 2023
1 parent 9fb168a commit 40f950f
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
}
}

0 comments on commit 40f950f

Please sign in to comment.