View.navigationLinkIndicatorVisibility(_:) crashes apps running on iOS 18.x

Apps crash on launch when using View.navigationLinkIndicatorVisibility(_:) (which is iOS 17.0+ iPadOS 17.0+ Mac Catalyst 17.0+).

Catalyst also crashes.

Stack trace starts with: Symbol not found: _$s7SwiftUI17EnvironmentValuesV33_navigationIndicatorVisibilityABIAA0G0OvpMV

Xcode 26.0.1 (17A400)

  • iPadOS 18.3.1 (22D8075)
    • It also crashed a user on iOS 18.6.2

macOS 15.6.1 (24G90)

FB20596543

import SwiftUI

@main
struct NavLinkDisabledApp: App {
    var body: some Scene {
        WindowGroup {
            NavigationStack {
                List {
                    NavigationLink("Text") {}
                        .navigationLinkIndicatorVisibility(.hidden)
                }
            }
        }
    }
}
Answered by DTS Engineer in 861706022

Thank you for the post and the bug report. Could you please try something for me?

Could you recompile your application against the 26.1 SDK and deploy it to the devices where the application was crashing? Please let me know if the issue persists or if Xcode 26.1 beta has resolved the problem.

Thanks for trying that and thanks in advance if you can post the results here.

Albert Pascual
  Worldwide Developer Relations.

Accepted Answer

Thank you for the post and the bug report. Could you please try something for me?

Could you recompile your application against the 26.1 SDK and deploy it to the devices where the application was crashing? Please let me know if the issue persists or if Xcode 26.1 beta has resolved the problem.

Thanks for trying that and thanks in advance if you can post the results here.

Albert Pascual
  Worldwide Developer Relations.

@DTS Engineer Hi Albert, yes, this looks to be resolved in Xcode 26.1 beta 2 (17B5035f).

Thanks so much for letting us know so quickly. Appreciate you answering.

Keep enjoying your developing adventures. Glad it worked out well for you!

Albert Pascual
  Worldwide Developer Relations.

View.navigationLinkIndicatorVisibility(_:) crashes apps running on iOS 18.x
 
 
Q