UIToolbar + liquid glass = autolayout warnings?

I have an app where I create UIToolbars and add them to UIViews programatically. I've never used autolayout for anything, I've never assigned any constraints to anything, etc.

This worked fine pre-iOS 26.

Now I'm trying to build for iOS 26 (liquid glass) and my toolbars are spamming my debug pane with hundreds of lines of autolayout warnings. Here are some key phrases from the warnings:

Unable to simultaneously satisfy constraints. Will attempt to recover by breaking constraint Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger. (Note: If you're seeing NSAutoresizingMaskLayoutConstraints that you don't understand, refer to the documentation for the UIView property translatesAutoresizingMaskIntoConstraints)

Does anybody know what happened and how I can get it to stop? The way things are, I can't use the debug pane for anything because of this spam.

Thank you for sharing your post.

Have you attempted using the latest Xcode beta? What version of Xcode are you using?

The warnings you are receiving indicate that Auto Layout is attempting to resolve conflicting constraints. Since you have not explicitly used Auto Layout in your code previously, it is likely that Auto Layout is relying on implicit constraints generated from the frames and autoresizing masks of your views.

When you create views programmatically and do not intend to set constraints manually, such as in the following example:

toolbar.translatesAutoresizingMaskIntoConstraints = false

 

https://developer.apple.com/documentation/uikit/uiview/translatesautoresizingmaskintoconstraints

If your toolbar is embedded in or interactIn contrast to other views, ensure that those views also have the translatesAutoresizingMaskIntoConstraints property set to false and appropriate constraints added.

By adopting explicit Auto Layout usage, you will not only eliminate these warnings but also gain more robust and flexible UI layout management, which is advantageous as iOS continues to refine its layout systems.

Could you please provide us with a focused sample that demonstrates the issue and the associated warnings on the constraints?

If so, please share a link to your test project. That'll help us better understand what's going on. If you're not familiar with preparing a test project, take a look at Creating a test project.

Albert Pascual
  Worldwide Developer Relations.

UIToolbar + liquid glass = autolayout warnings?
 
 
Q