mirror of
https://github.com/laosb/CropImage.git
synced 2025-05-01 08:01:09 +00:00
Update Sources/CropImage/CropImageView.swift
Co-authored-by: Shibo Lyu <github@shibolyu.com>
This commit is contained in:
parent
4e0f333e2f
commit
517fb0c003
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