Xcode 15: Disable the content margins for widget preview? (contentMarginsDisabled)

Apple Recommended

  • Thank you very much !

    Would you mind having a look to that question too: https://developer.apple.com/forums/thread/733102?login=true&page=1#761114022

    I having hard time to work around that issue with Widget Interactivity that sometimes (when tapping multiple times on a widget button) opens the app ignoring the tapped button intent. I Just need to know if this is considered as a bug that will be fixed before iOS 17 release or if interactive widgets are not supposed to be fully interactive.

Add a Comment

Replies

  • Thank you very much !

    Would you mind having a look to that question too: https://developer.apple.com/forums/thread/733102?login=true&page=1#761114022

    I having hard time to work around that issue with Widget Interactivity that sometimes (when tapping multiple times on a widget button) opens the app ignoring the tapped button intent. I Just need to know if this is considered as a bug that will be fixed before iOS 17 release or if interactive widgets are not supposed to be fully interactive.

Add a Comment

I had this issue too, and found that contentMarginsDisabled() also doesn't work in the preview (even with the newer syntax) if:

  • Your widgets are exposed in a WidgetBundle and the one you're previewing isn't in the bundle
  • Your widget definition's kind property isn't unique