mirror of
https://github.com/laosb/CropImage.git
synced 2025-04-30 23:51:08 +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
|
||||
)
|
||||
.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)
|
||||
renderer.scale = targetScale
|
||||
#if !os(macOS)
|
||||
|
|
Loading…
Add table
Reference in a new issue