mirror of
https://github.com/laosb/CropImage.git
synced 2025-04-30 23:51:08 +00:00
Merge remote-tracking branch 'refs/remotes/origin/vision'
This commit is contained in:
commit
5eaa23d4ea
1 changed files with 1 additions and 1 deletions
|
@ -141,7 +141,7 @@ public struct CropImageView<Controls: View, CutHole: View>: View {
|
||||||
fulfillTargetFrame: fulfillTargetFrame
|
fulfillTargetFrame: fulfillTargetFrame
|
||||||
)
|
)
|
||||||
.frame(width: targetSize.width, height: targetSize.height)
|
.frame(width: targetSize.width, height: targetSize.height)
|
||||||
if #available(iOS 16.0, macOS 13.0, *) {
|
if #available(iOS 16.0, macOS 13.0, visionOS 1.0, *) {
|
||||||
let renderer = ImageRenderer(content: snapshotView)
|
let renderer = ImageRenderer(content: snapshotView)
|
||||||
renderer.scale = targetScale
|
renderer.scale = targetScale
|
||||||
#if !os(macOS)
|
#if !os(macOS)
|
||||||
|
|
Loading…
Add table
Reference in a new issue