Skip to content

Commit

Permalink
🐛 :: 아티스트 리스트 이미지 URL 인코딩 처리
Browse files Browse the repository at this point in the history
  • Loading branch information
KangTaeHoon committed Jun 26, 2023
1 parent 56b966f commit 64245f4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,13 @@ extension ArtistListCell {
.foregroundColor: DesignSystemAsset.GrayColor.gray600.color,
.kern: -0.5]
)
let originImageURLString: String = WMImageAPI.fetchArtistWithRound(id: model.ID, version: model.imageRoundVersion).toString
let encodedImageURLString: String = originImageURLString.addingPercentEncoding(withAllowedCharacters: .urlQueryAllowed) ?? originImageURLString

artistLabel.attributedText = artistNameAttributedString
artistLabel.textAlignment = .center
artistImageView.kf.setImage(
with: URL(string: WMImageAPI.fetchArtistWithRound(id: model.ID, version: model.imageRoundVersion).toString),
with: URL(string: encodedImageURLString),
placeholder: nil,
options: [.transition(.fade(0.2))]
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,7 @@ extension HomeViewController {
latestSongAllButton.isSelected = true
latestSongEmptyLabel.isHidden = true
latestSongEmptyLabel.text = "현재 집계된 음악이 없습니다."
latestSongEmptyLabel.textColor = DesignSystemAsset.GrayColor.gray900.color
latestSongEmptyLabel.font = DesignSystemFontFamily.Pretendard.medium.font(size: 14)
latestSongEmptyLabel.setLineSpacing(kernValue: -0.5)
latestSongEmptyLabel.textAlignment = .center
Expand Down
2 changes: 1 addition & 1 deletion Tuist/ProjectDescriptionHelpers/Environment.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public enum Environment {
public static let platform = Platform.iOS
public static let baseSetting: SettingsDictionary = SettingsDictionary()
.marketingVersion("2.0.0")
.currentProjectVersion("40")
.currentProjectVersion("41")
.debugInformationFormat(DebugInformationFormat.dwarfWithDsym)
.otherLinkerFlags(["-ObjC"])
.bitcodeEnabled(false)
Expand Down

0 comments on commit 64245f4

Please sign in to comment.