Skip to content

Why do I see multiple windows with the exact same content sometimes? #27

Answered by Jeehut
Jeehut asked this question in Help / FAQ
Discussion options

You must be logged in to vote

Background

RemafoX is fully written in SwiftUI. Unfortunately, as of October 2022 SwiftUI on macOS is still lacking behind a bit. In particular, there's no way to do window management built into SwiftUI, one has to resort back to AppKit APIs for that, but even this is not really thought out (or documented how to do it properly). I'm currently using this approach which kinda works, but unfortunately the closing of windows by a user doesn't seem to properly communicate to the system that the window is closed, leading to this issue.

Workaround

A simple workaround to fix these annoying multiple windows is to simply close all windows and restart RemafoX.

Current Plan

While I might find a prope…

Replies: 1 comment

Comment options

Jeehut
Oct 15, 2022
Maintainer Author

You must be logged in to vote
0 replies
Answer selected by Jeehut
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant