Skip to content
This repository has been archived by the owner on Oct 1, 2022. It is now read-only.

Commit

Permalink
Fix macOS target
Browse files Browse the repository at this point in the history
  • Loading branch information
kean committed Jun 11, 2021
1 parent 2e89d13 commit 3b1ac44
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Sources/ImageView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,7 @@ public class ImageView: _PlatformBaseView {
}

final class ImageViewWrapper: ImageView {
#if os(iOS) || os(tvOS)
var _intrinsicContentSize: CGSize = CGSize(width: -1, height: -1)

override var intrinsicContentSize: CGSize {
Expand All @@ -256,6 +257,7 @@ final class ImageViewWrapper: ImageView {
invalidateIntrinsicContentSize()
}
}
#endif
}

#endif

0 comments on commit 3b1ac44

Please sign in to comment.