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 version of LocalConsole #11

Open
wynioux opened this issue Jan 5, 2022 · 5 comments
Open

SwiftUI version of LocalConsole #11

wynioux opened this issue Jan 5, 2022 · 5 comments

Comments

@wynioux
Copy link

wynioux commented Jan 5, 2022

Hi, are you planing to make LocalConsole SwiftUI version as much as possible? If you can, it will be great. Awesome work btw, thanks.

@duraidabdul
Copy link
Owner

LocalConsole works in a SwiftUI app. To use it in your SwiftUI code, you can try:

import SwiftUI
import LocalConsole

struct ContentView: View {
    var body: some View {
        Button {
            LCManager.shared.isVisible = true
        } label: {
            Text("Show LocalConsole")
        }
    }
}

@wynioux
Copy link
Author

wynioux commented Jan 18, 2022

I know it can be used with SwiftUI, i asked you to are you planning develop native SwiftUI version of LocalConsole, so SwiftUI developers like me, can implement own functionalities to your LocalConsole :) Btw LCManager.shared.isVisible is not working when Face ID or Touch ID dialog on the way.

@duraidabdul
Copy link
Owner

Sorry, I'm not planning to re-implement this project in SwiftUI.

What do you mean by that? isVisible is just a property you can switch.

@wynioux
Copy link
Author

wynioux commented Jan 19, 2022

When app initialize, i set isVisible true but LocalConsole not appear because my app starts with login screen and Face ID/Touch ID dialog immediately pop up. The only way to show is set isVisible true after the Face ID/Touch ID dialog.

@duraidabdul
Copy link
Owner

Okay that makes sense, thanks for clarifying. I'll look into this when I get the chance!

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