Skip to content

Commit

Permalink
Add TODO comment to support scale for macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
yutailang0119 committed Jul 5, 2021
1 parent fce9788 commit 3ae3dd5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Sources/BackportAsyncImage/BackportAsyncImage.swift
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ private final class ViewModel: ObservableObject {

private func image(from data: Data?) -> Image? {
#if os(macOS)
// TODO: Support scale on macOS
return data
.flatMap(NSImage.init(data:))
.map(Image.init(nsImage:))
Expand Down

0 comments on commit 3ae3dd5

Please sign in to comment.