Skip to content

Commit

Permalink
CLUrlImage improved render performance for fallbackImage
Browse files Browse the repository at this point in the history
  • Loading branch information
juliangerhards committed Apr 2, 2022
1 parent 0f6968e commit 52fe99e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/CleanUI/Views/CLUrlImage.swift
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public struct CLUrlImage: View {
public init(urlString: String?, fallbackImage: UIImage?, contentMode: ContentMode = .fill) {
urlImageModel = UrlImageModel(urlString: urlString)
self.contentMode = contentMode
self.fallbackImage = fallbackImage ?? UIColor.accent.imageWithColor(width: 100, height: 100)
self.fallbackImage = fallbackImage ?? UIColor.accent.imageWithColor(width: 1, height: 1)
}

public var body: some View {
Expand Down

0 comments on commit 52fe99e

Please sign in to comment.