Skip to content

Commit

Permalink
Fix BackportAsyncImage to support scale when UIImage
Browse files Browse the repository at this point in the history
  • Loading branch information
yutailang0119 committed Jul 5, 2021
1 parent d4cfe29 commit fce9788
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/BackportAsyncImage/BackportAsyncImage.swift
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ private final class ViewModel: ObservableObject {
.map(Image.init(nsImage:))
#else
return data
.flatMap(UIImage.init(data:))
.flatMap { UIImage(data: $0, scale: scale) }
.map(Image.init(uiImage:))
#endif
}
Expand Down

0 comments on commit fce9788

Please sign in to comment.