Remove back compat code from visionOS

This commit is contained in:
infinitepower18 2024-03-26 17:11:06 +00:00 committed by Shibo Lyu
parent 517fb0c003
commit 304a4c8e7e

View file

@ -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