HomeiOS DevelopmentIs there a technique to disable Windowed Apps multitasking mode on iPad...

Is there a technique to disable Windowed Apps multitasking mode on iPad (iOS 26)?


On iPadOS 16+, apps can run in windowed multitasking mode (resizable home windows).
I’d wish to drive my app to all the time keep fullscreen with out permitting customers to resize it.

Is there a technique to disable Windowed Apps multitasking mode on iPad (iOS 26)?

Right here’s what I’ve tried thus far:

if UIDevice.present.userInterfaceIdiom == .pad {
    if let sizeRestrictions = windowScene.sizeRestrictions {
        let screenSize = windowScene.display screen.bounds.measurement
        sizeRestrictions.minimumSize = screenSize
        sizeRestrictions.maximumSize = screenSize
    }
}

This units each the minimal and most measurement to the display screen bounds.
Nonetheless, even with this, the consumer can nonetheless scale the app window down by about ~11%.

Instance (iPad Professional 13" M4 simulator):

screenSize: (1032.0, 1376.0)

After cutting down: {899, 1221}

I additionally seen that windowScene(_:didUpdateEffectiveGeometry:) offers some geometry data:

func windowScene(
    _ windowScene: UIWindowScene,
    didUpdateEffectiveGeometry previousEffectiveGeometry: UIWindowScene.Geometry
) {
    print(previousEffectiveGeometry.description)
    // <UIWindowSceneGeometry: 0x600002160d20; coordinateSpace.bounds: {{0, 0}, {1032, 1376}};
    //  interfaceOrientation: portrait (1); isInteractivelyResizing: YES>
}

Is there any technique to fully disable windowed multitasking mode on iPad (iOS 26), in order that the app all the time stays fullscreen?

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments