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

Accessing Debug window without going through the bubble #132

Open
domainxh opened this issue Sep 2, 2021 · 5 comments
Open

Accessing Debug window without going through the bubble #132

domainxh opened this issue Sep 2, 2021 · 5 comments

Comments

@domainxh
Copy link

domainxh commented Sep 2, 2021

Hi, is there a way to access the debug window without having to tab the small circular bubble icon?

Can I programmatically trigger the debug window to appear? Please advise

@CocoaDebug
Copy link
Owner

protocol BubbleDelegate: class {
    func didTapBubble()
}

@domainxh
Copy link
Author

Thanks for the feedback, but that's only accessible to the framework itself right since it's not marked as public. I don't think it's accessible for the client app.
Screen Shot 2021-09-13 at 9 57 22 AM

@CocoaDebug
Copy link
Owner

func didTapBubble().

You can just use this function, haha~

@domainxh
Copy link
Author

I think I'm clearly missing something and that's why I'm not exactly following your comment. I'm trying to programmatically trigger the debug view to show up in the client app without shaking. And the only way I was able to accomplish that was to do something like this.

    private func toggleDebug() {
        debugEnabled ? CocoaDebug.showBubble() : CocoaDebug.hideBubble()
        debugEnabled.toggle()
    }

From there, when the bubble appears, then I can use my finger to tab the bubble to bring up the view.

What I was wondering is if it's possible to programmatically trigger the debug view to appear via something like
CocoaDebug.didTapBubble.

I know you have mentioned didTapBubble couple times now, but it's not accessible in the client app.

@CocoaDebug
Copy link
Owner

I see. You can commit PR. 😄

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

2 participants