Thursday, 15 October 2020

UIBarButtonItem working but not visible with Xcode11 and Xcode12

After migrating our app to Xcode12 from Xcode10 we are seing an issue with our UIBarButtonItems. Some of those are not visible but still working.

We were able to target more specifically the following:

  • Xcode10.3 on iOS12: no issue
  • Xcode10.3 on iOS13 through release: no issue
  • Xcode10.3 on iOS14 through release: no issue
  • Xcode11.7 on iOS12: no issue
  • Xcode11.7 on iOS13: issue is there
  • Xcode12.0.1 on iOS12: no issue
  • Xcode12.0.1 on iOS13: issue is there
  • Xcode12.0.1 on iOS14: issue is there
  • Issue appears either in Debug and in Release
  • Issue does not appear when we run the app from Xcode
  • Issue appears only when we quit the app and launch it again from the device directly
  • Issue appears only with UIBarButtonItem being System Item with icon, such as: Refresh, Add, ...
  • Issue does not appear with UIBarButtonItem being System Item with text, such as: Edit, Close, ...
  • Issue does not appear with UIBarButtonItem being Custom with image from assets
  • Issue appears also if I do the UIBarButtonItem System programmatically

When looking at the "hierarchy view" the item and its icon is there, but not shown on the device. We do not see any difference when the item is shown or not that could help to understand the problem.

Below the screenshot are:

  1. Storyboard
  2. Issue on iPad after launch from icon
  3. View hierarchy of the issue

More screenshots (comparison) are available here: https://imgur.com/a/7Dcyvir

Storyboard Issue on iPad after launch from icon View hierarchy of the issue

Any chance someone has seen a similar behavior with Xcode11 or Xcode12? Any idea of what we could try or if it is an Xcode issue that needs to be reported for a fix?

Thanks in advance for your help!



from UIBarButtonItem working but not visible with Xcode11 and Xcode12

No comments:

Post a Comment