Description

Summary

Since 5.8.4, bUseSceneBasedLifecycle=True is the default in BaseEngine.ini (CL 58901798 in //UE5/Release-5.8, from CL 58513301 in //UE5/Dev-Release-5.8, [Link Removed]). With it enabled, the iOS safe zone (FDisplayMetrics::TitleSafePaddingSize / ActionSafePaddingSize) is zero after launch, so UMG SafeZone widgets are not offset for the notch in landscape. It works on 5.8.3, and on 5.8.4 with bUseSceneBasedLifecycle=False.

Root cause (from code reading, Release-5.8 / Dev-Release-5.8)

  • Where the insets come from: safe padding is read only from the file-static CachedInsets (Engine/Source/Runtime/ApplicationCore/Private/IOS/IOSApplication.cpp:257), which starts at zero.
  • What writes them: only FIOSApplication::CacheDisplayMetrics (reached via OrientationChanged) and FIOSApplication::UpdateSafeZoneAfterRotation (reached via viewWillTransitionToSize, so only on a real rotation).
  • The only startup trigger: with ios.DelayRotationUntilPresent=1 (the default), it is the post-init [AppDelegate didRotate:nil] in Engine/Source/Runtime/Launch/Private/IOS/LaunchIOS.cpp (around lines 492-498). -[IOSAppDelegate didRotate:] only calls OrientationChanged when self.InterfaceOrientation != NewOrientation || bForceUpdate (IOSAppDelegate.cpp, around lines 1579 and 1656).
  • Legacy lifecycle (works): InterfaceOrientation is still Unknown at that point, so the update fires and the insets are cached.
  • Scene lifecycle (broken): InterfaceOrientation is already set to the real scene orientation in IOSSceneDelegate.cpp:34 and LaunchIOS.cpp:382-385. LaunchIOS.cpp:400-403 also seeds CachedOrientation, but not CachedInsets. So didRotate: does nothing and CachedInsets stays {0,0,0,0}

    until the device is rotated.

The scene path was added in CL 54370304 ([Link Removed]).

Suggested fix (hotfix-safe, .cpp only)

In the LaunchIOS.cpp post-init dispatch_async(main_queue) block, after [AppDelegate didRotate:nil]:

#if UE_IOS_SCENE_LIFECYCLE && !PLATFORM_TVOS && !PLATFORM_VISIONOS
    FIOSApplication::UpdateSafeZoneAfterRotation();
#endif

This re-reads window.safeAreaInsets on the UI thread and broadcasts BroadcastDisplayMetricsChanged and OnSafeFrameChangedEvent. Optionally, also null-check App in its async task.

Pending CL 59218956 ([Link Removed]) adds a layoutSubviews → ViewSizeChanged refresh. It fixes the insets after a resume or resize, but not reliably at cold launch.

Workarounds

  • Set bUseSceneBasedLifecycle=False. This is fine when building with Xcode 26; Xcode 27 / iOS 27 SDK builds require UIScene.
  • Rotate the device once.
  • Use device-profile SafeZone.Landscape.* overrides.

Android is not affected (iOS-only code).

Steps to Reproduce
  1. Create a project with a UMG widget that contains a SafeZone widget with content placed against the screen edges.
  2. Use UE 5.8.4 defaults (bUseSceneBasedLifecycle=True in BaseEngine.ini). Package for iOS with the app locked to landscape.
  3. Launch on an iPhone with a notch or Dynamic Island, held in landscape.

Result: the content is not offset from the notch (safe zone padding is 0).

Expected: the content is inset from the notch, as in 5.8.3 or with bUseSceneBasedLifecycle=False.

Note: rotating the device (landscape left <-> right) corrects the safe zone.

Have Comments or More Details?

There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-406263 in the post.

0
Login to Vote

Fixed
Fix Commit59784997
CreatedOct 26, 2026
ResolvedOct 28, 2026
UpdatedDec 3, 2026
View Jira Issue