Skip to content
This repository has been archived by the owner on Apr 4, 2024. It is now read-only.

Commit

Permalink
feat :: URL 이면 Image 앞에 URL 안 붙임
Browse files Browse the repository at this point in the history
  • Loading branch information
HongSJae committed Oct 6, 2023
1 parent b32c511 commit 7cd546a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Projects/Shared/DesignSystem/Sources/Image/URLImage.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@ public struct URLImage: View {

public init(imageURL urlString: String, shape: ImageShape) {
let baseURL = Environment.getUrlValue(key: .s3BaseUrl)
self.imageURL = baseURL.appendingPathComponent(urlString)
if urlString.contains(baseURL.description) {
imageURL = URL(string: urlString)
} else {
self.imageURL = baseURL.appendingPathComponent(urlString)
}

self.shape = shape
}
Expand Down

0 comments on commit 7cd546a

Please sign in to comment.