Closed OneSman7 closed 1 year ago
Hey, thanks for the report. Can you the code that shows the console please?
func presentPulseLogging(on controller: UIViewController) {
let vc = PulseUI.MainViewController(store: .shared) { [weak controller] in
controller?.dismiss(animated: true, completion: nil)
}
vc.modalPresentationStyle = .fullScreen
controller.present(vc, animated: true, completion: nil)
}
It seems 2 buttons come from here
It was needed previously to provide onDismiss
to close console correctly. Seems now it is not necessary and results in 2 buttons :)
Yes, you can remove onDismiss
for now as a workaround. I'm going to update the API in the upcoming release.
Hello again! Now on iOS 14 no close button is displayed. Will have to resort to display console not fullscreen to be able to close it. Maybe it is connected to @Environment(.presentationMode) being debrecated, but I am not sure.
I don't know; this API has been hit or miss. In my testing, it works, but it depends on how you present it and what View/ViewController hierarchy.
The expected behavior is that it should be displayed by default. I would appreciate it if you could provide a sample where I can reproduce it.
I just updated to the recent version (3.5.4 -> 3.5.7) and see this in Console)) I think screenshot says it all :D It does not prevent from using console - both buttons work.