Swift Tom

Check out my WatchOS app Status of Github that I made using SwiftUI!

How to Know When Your App Becomes Active or Inactive in SwiftUI

Recently I was working on a SwiftUI project were I needed to know when my app became active from being in the background. Like most things in SwiftUI, I found out that this was really simple to implement in my project. In SwiftUI we have a environment element called scenePhase. What scenePhase allows us to […]

“Failed to initialize client context with error”: A Error When Trying to Run a Widget in the Xcode Simulator (M1 Macs)

This is a short post about an issue I recently had with updating a widget for a SwiftUI project. I kept getting a weird error every time I tried to run a widget target in the simulator. The error read “Failed to initialize client context with error“. This was followed by a crazy long error […]

Follow My Blog

Get new content delivered directly to your inbox.