From c7572115bf2f6a83db1a1980804fb7cbc8c7e071 Mon Sep 17 00:00:00 2001 From: Taylor Holliday Date: Sat, 24 Feb 2024 16:19:01 -0800 Subject: [PATCH] UIScreen is unavailable on visionOS Co-Authored-By: Aurelius Prochazka --- .../CookbookCommon/Sources/CookbookCommon/ContentView.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cookbook/CookbookCommon/Sources/CookbookCommon/ContentView.swift b/Cookbook/CookbookCommon/Sources/CookbookCommon/ContentView.swift index ee5bea75..c0bfb36c 100644 --- a/Cookbook/CookbookCommon/Sources/CookbookCommon/ContentView.swift +++ b/Cookbook/CookbookCommon/Sources/CookbookCommon/ContentView.swift @@ -255,7 +255,7 @@ struct DetailView: View { Image("audiokit-icon") .resizable() .aspectRatio(contentMode: .fit) - .frame(width: UIScreen.main.bounds.width * 0.8, height: UIScreen.main.bounds.height * 0.3) + .frame(width: 300, height: 300) Image("audiokit-logo") .resizable() .aspectRatio(contentMode: .fit)