I’m building a Multiplatform Apple app, and on iPadOS, I’m trying to configure the app so that the users can’t create multiple windows for an app, but can still freely position the app around.
Unlike macOS, disabling the ability to create new windows in the menu bar doesn’t get rid of the ability to create new windows.
import SwiftUI
@main
struct MyApp: App {
// Run code to automatically quit the app after closing its window on macOS
#if os(macOS)
@NSApplicationDelegateAdaptor(AppDelegate.self) var appDelegate
#endif
var body: some Scene {
WindowGroup {
ContentView()
}.commands {
// Hide the new window button
CommandGroup(replacing: CommandGroupPlacement.newItem) {
}
}
#if os(macOS)
Settings {
MacSettingsView()
}
#endif
}
}
On the iPadOS version, however, users can still create new windows by tapping on the app icon in the dock and selecting the new window button in the top left corner (or by dragging the apps icon from the dock like in previous versions)

Using UIRequiresFullScreen (older plist setting used to disable multitasking features) didn’t work as all it did was make the app go to a fallback design with a safe zone for the window buttons
