SwiftUI version of LocalConsole
Hi, are you planing to make LocalConsole SwiftUI version as much as possible? If you can, it will be great. Awesome work btw, thanks.
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")
}
}
}
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.
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.
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.
Okay that makes sense, thanks for clarifying. I'll look into this when I get the chance!