Skip to content

Commit

Permalink
Remove back compat code from visionOS
Browse files Browse the repository at this point in the history
  • Loading branch information
infinitepower18 authored and laosb committed Mar 28, 2024
1 parent 517fb0c commit 304a4c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/CropImage/CropImageView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 304a4c8

Please sign in to comment.