Skip to content

Commit

Permalink
[Fix] sopt-makers#348 - 프로필 이미지 contentMode 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
lsj8706 committed Jan 8, 2024
1 parent b0b74c9 commit 57a6daa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ public final class PokeProfileCardView: UIView, PokeCompatible {
imageView.layer.cornerRadius = 60
imageView.backgroundColor = DSKitAsset.Colors.gray700.color
imageView.clipsToBounds = true
imageView.contentMode = .scaleAspectFill
return imageView
}()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ public final class PokeProfileImageView: UIImageView {
self.backgroundColor = DSKitAsset.Colors.gray700.color
self.clipsToBounds = true
self.layer.borderWidth = 2
self.contentMode = .scaleAspectFill
}

public func setImage(with url: String, relation: PokeRelation) {
Expand Down

0 comments on commit 57a6daa

Please sign in to comment.