1
votes

Apple recommend that we should:

Align content with the widget’s title. When your widget content aligns with your title, people can easily scan the Today view for the widget they want. Respect the margins in the Today view, and restrain your content to the widget content area shown here.

and provide the following image:

enter image description here

How do I programmatically, using autolayout, align a UILabel's left edge with that of the Title? Or am I expected to just 'eyeball' it?

source: https://developer.apple.com/LIBRARY/PRERELEASE/IOS/documentation/UserExperience/Conceptual/MobileHIG/AppExtensions.html#//apple_ref/doc/uid/TP40006556-CH67-SW4

2

2 Answers

0
votes

Check out widgetMarginInsetsForProposedMarginInsets.

This will do it for you to align them.

0
votes

Just align it to your superviews left edge, that will be the widget content area.