Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SwiftUI/iOS integration issue #420

Closed
dfrl-dev opened this issue May 7, 2024 · 1 comment
Closed

SwiftUI/iOS integration issue #420

dfrl-dev opened this issue May 7, 2024 · 1 comment

Comments

@dfrl-dev
Copy link

dfrl-dev commented May 7, 2024

I'm running into an issue when following the SwiftUI test example:

No ObservableObject of type SceneDelegate found. A View.environmentObject(_:) for SceneDelegate may be missing as an ancestor of this view.

The examples are copied verbatim, minus the calls to TestData.swift, and use of the RunApiTests functions.

The only change I had to make was import UIKit within AppDelegate, otherwise all the classes prefixed with UI were not found.

Any clues why this would occur?

SwiftyDropbox v 10.0.2, iOS Deployment Target 17.2, Xcode Version 15.3 (15E204a)

@dfrl-dev
Copy link
Author

dfrl-dev commented May 8, 2024

User error.

@dfrl-dev dfrl-dev closed this as completed May 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant