新的window control如何适配

Asked on 06/12/2025

1 search

To adapt to the new window controls in iPadOS 26, you can follow these guidelines:

  1. Placement of Window Controls: The new window controls appear on the leading edge of your app's toolbar. Existing controls will shift to the right to make room and avoid occlusion. For apps not updated to iPadOS 26, the system increases the safe area above the toolbar to place the window controls on its leading edge. This placement is for compatibility and creates a permanent safe area.

  2. Adaptivity in UIKit: In iPadOS 26, scenes gain new controls to close, minimize, and arrange a window, similar to macOS. The window control appears alongside the content in your scene. You can specify a preferred windowing control style to complement your content by implementing the UIWindowsOpenDelegate method. Use a layout guide that accounts for the window control to ensure your UI is not occluded. This is particularly useful for bar-like content at the top of a scene.

For more detailed information, you can refer to the session Elevate the design of your iPad app (05:00) and Make your UIKit app more flexible (10:45).