Solved it. I misinterpreted scenePhase . If the app is in foreground I thought it would be also "active". To see whether app is in foreground (active or inactive) I only need to check whether scenePhase isn't background.
Thanks for the response.
I meant the following: I minimised the app by clicking the digital crown (rotatory wheel on watch). Then I reopened it again, but the items weren’t loaded. In other scenarios they’ve been loaded.
How to see the logs when I’m running the app on my watch? I didn’t find immediate solution how to connect it with XCode for debugging.
I've provided simplified working example in the reply below.
No I didn't try it as I'd like to have this in this view for better overview of those multiple views and separation of concerns.
First example was not totally correct, sorry. See new example.
Solved it. I misinterpreted scenePhase . If the app is in foreground I thought it would be also "active". To see whether app is in foreground (active or inactive) I only need to check whether scenePhase isn't background.
Thanks for the response.
I meant the following: I minimised the app by clicking the digital crown (rotatory wheel on watch). Then I reopened it again, but the items weren’t loaded. In other scenarios they’ve been loaded.
How to see the logs when I’m running the app on my watch? I didn’t find immediate solution how to connect it with XCode for debugging.
I've provided simplified working example in the reply below.
No I didn't try it as I'd like to have this in this view for better overview of those multiple views and separation of concerns.
First example was not totally correct, sorry. See new example.