Post

Replies

Boosts

Views

Activity

Reply to Can't build to simulator on Apple Silicon
Same issue. My project which has Firebase dependencies runs fine on a physical device. To make it run in the simulator, I have to run Xcode with Rosetta 2. What I don't quite grasp (maybe someone can enlighten me): the Simulator should run on the arm64 architecture on an M1 mac, right? So why do I have to exclude arm64 in my project for the iOS Simulator if I run it on an M1 mac? It makes sense if Xcode (and probably the simulator) run in Rosetta 2 and also if Xcode is running on an Intel Mac - because then the instructions for x86 are executed.
Dec ’20
Reply to Snapshot of a SwiftUI View
I'd recommend combining these two approaches, worked like magic for me. type the following in youtube search(Apple doesn't let me post the youtube link here): "Hack screen capture to take photo of web info easily on your app | SwiftUI" Use the background modifier shown in the video, it's a great idea. Use the View and UIView extensions from this source: https://gist.github.com/SatoTakeshiX/39e111aa93f896e58c74fdc13d19ba0a
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Sep ’20