LocalConsole icon indicating copy to clipboard operation
LocalConsole copied to clipboard

SwiftUI version of LocalConsole

Open wynioux opened this issue 4 years ago • 5 comments

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

wynioux avatar Jan 05 '22 14:01 wynioux

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")
        }
    }
}

duraidabdul avatar Jan 16 '22 05:01 duraidabdul

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.

wynioux avatar Jan 18 '22 14:01 wynioux

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.

duraidabdul avatar Jan 18 '22 17:01 duraidabdul

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.

wynioux avatar Jan 19 '22 07:01 wynioux

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

duraidabdul avatar Jan 19 '22 16:01 duraidabdul