Open ptrkstr opened 1 month ago
Thanks for using Proxyman as a reference source.
I'd follow: if there is a windows -> shows as modal, if not, just present as a normal Windows.
It's easier from user's point of view. Just click and it opens
Good idea, makes the most sense and achievable with SwiftUI Window
and @Environment(\.openWindow)
API, thanks!
Description
Proxyman is a very well designed macOS app. I've been referencing it as I'm improving my macOS app (https://lyrcs.app). I wanted to mimic Proxyman's pattern of showing the PRO window when user presses
Menu > Proxyman > Buy Proxyman Pro...
. I discovered however nothing appears if no window is available which is because Proxyman presents a modal sheet over a window. I expect this to be a minor case because how often would a user use Proxyman without a window open. Regardless I thought it would be interesting to see how you solved it as perhaps I could solve it in a similar way.Steps to Reproduce
Current Behavior
Nothing occurs
Expected Behavior
I receive information about Proxyman Pro.
Environment
Possible Solutions
focusedSceneValue
to only enable the button if a window is active.