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

Issue setting up strada user agent for WKWebViewConfiguration #34

Open
indigotechtutorials opened this issue May 16, 2024 · 2 comments
Open

Comments

@indigotechtutorials
Copy link

indigotechtutorials commented May 16, 2024

Hey I am attempting to setup strada following the quickstart guide and referencing the demo but I am facing an error in my WKWebViewConfiguration that is not mentioned in the docs and in the demo the same code seems to work fine
It looks like the BridgeComponent.allTypes method is using async so Im getting an error about the function not supporting concurrency but I don't know how to fix this, and am confused why the demo works with this same code?
Would appreciate any help!

Screenshot 2024-05-16 at 8 48 07 AM Screenshot 2024-05-16 at 8 47 04 AM
@joemasilotti
Copy link
Member

What version of Xcode/Swift are you using?

Can you share the BridgeComponent extension you've added?

@indigotechtutorials
Copy link
Author

indigotechtutorials commented May 16, 2024

Hey @joemasilotti thanks for your reply I'm using 17.2 as the target version in xcode
I managed to get strada working now but I had to change my BridgeComponent, besides this catch up now that Strada works Its really awesome!
Seems like the nonisolated part was important

import Strada

extension BridgeComponent {
    nonisolated static var allTypes: [BridgeComponent.Type] {
        [
            FormComponent.self,
        ]
    }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants