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

Type 'Bridgefy' has no member 'manager' #19

Open
kicks66 opened this issue Mar 18, 2023 · 0 comments
Open

Type 'Bridgefy' has no member 'manager' #19

kicks66 opened this issue Mar 18, 2023 · 0 comments

Comments

@kicks66
Copy link

kicks66 commented Mar 18, 2023

Describe the bug
Creating a basic implementation of Bridgefy provides an error

I have the following code:

class BridgefyManager: NSObject, ObservableObject, BridgefyDelegate {
    @Published var currentUserID: UUID?
    @Published var connectedUsers: [UUID] = []
    @Published var receivedMessages: [(UUID, String)] = []

    override init() {
        super.init()
        do {
            try Bridgefy.manager.start(withAPIKey: "your_api_key_here", delegate: self)
        } catch {
            print("Error starting Bridgefy: \(error)")
        }
    }

And I am receiving an error Type 'Bridgefy' has no member 'manager' - even though the docs say this is the correct way to use it.

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