Add a constant for default spacing in auto layout

Originator:jacopo
Number:rdar://14319773 Date Originated:01-Jul-2013 04:56 PM
Status:Open Resolved:
Product:Developer Tools Product Version:5.0
Classification:Feature (New) Reproducible:N/A
 
Summary:

Since the launch of the auto layout system there isn't a nice constant or symbol to specify the default spacing when we specify the layout manually via adding constraint by constraint or via the visual mode.

Steps to Reproduce:

Try to specify in visual mode that due view have a trailing  and leading space from the super view greater than the default one when the two are separated by a default one.

Expected Results:

We can say something like @"|-(>=default)-[view1]-[view2]-(>=default)-|" and pass in the metrics dictionary something like @{@"default" : @(UILayoutDefaultSpacing)} and the the system analyze the views type and select the right default space.

Actual Results:

There is no constant to specify the default ones.

Regression:

Nope.

Notes:

Sorry for my bad english, if you can't understand I try to rewrite the obscure points.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!