0 Replies
      Latest reply on Sep 5, 2019 11:59 AM by RRG
      RRG Level 1 Level 1 (0 points)

        Using SwiftUI I'm trying to recreate an existing watch app.

        The app has multiple pages accessed via the next page segue.

        If I have a single WKHostingController the @environment object works as described.

         

        However if I try to access the @environment variable from a View instanitiated with a different WKHostingController I get the following error:

        Fatal error: No observable object of type VetUserSettings.Type found.

        where VetUserSetting is intially set in the WKHostingController instantiation of the first page.