mirror of
https://github.com/laosb/CropImage.git
synced 2025-04-30 15:41:08 +00:00
Remove back compat code from visionOS
This commit is contained in:
parent
517fb0c003
commit
304a4c8e7e
1 changed files with 1 additions and 1 deletions
|
@ -160,7 +160,7 @@ public struct CropImageView<Controls: View, CutHole: View>: View {
|
|||
} else {
|
||||
#if os(macOS)
|
||||
fatalError("Cropping is not supported on macOS versions before Ventura 13.0.")
|
||||
#else
|
||||
#elseif os(iOS)
|
||||
let window = UIWindow(frame: CGRect(origin: .zero, size: targetSize))
|
||||
let hosting = UIHostingController(rootView: snapshotView)
|
||||
hosting.view.frame = window.frame
|
||||
|
|
Loading…
Add table
Reference in a new issue