ctietze,
@ctietze@mastodon.social avatar

@bzf with plain AppKit you can control which windows to spawn when (and close them).

I have tried multi-window approaches (ab)using SwiftUI window IDs and the experience was very limited.

My takeaway for 2024 is to approach a paywall/login like this:

  1. Launch the app
  2. If not logged in, show the login window
  3. Once logged in, show the main app window (or NSDocuments)

You can easily use SwiftUI for content. But trying to escape NSWindowController is tough.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • SwiftUI
  • DreamBathrooms
  • osvaldo12
  • thenastyranch
  • magazineikmin
  • Leos
  • rosin
  • GTA5RPClips
  • Durango
  • Youngstown
  • slotface
  • khanakhh
  • kavyap
  • everett
  • ngwrru68w68
  • provamag3
  • tacticalgear
  • InstantRegret
  • anitta
  • modclub
  • mdbf
  • cisconetworking
  • ethstaker
  • cubers
  • megavids
  • tester
  • normalnudes
  • JUstTest
  • lostlight
  • All magazines