Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can you get in code the value of standard spacing used in autolayout?

I was wondering if there is a way to find the values that correspond with Standard when you set autolayout separation in XCode.

TIA Mark

like image 637
MarkAurelius Avatar asked Sep 07 '14 01:09

MarkAurelius


1 Answers

There does not appear to be a constant available that you can access. Based on What constant can I use for the default Aqua space in Autolayout? the spacings are:

  • 20.0 between parent and child views (eg. a child view will start at 20, 20)
  • 8.0 between sibling views (eg. two children of the same parent will be 8.0 units apart)
like image 99
Iain McManus Avatar answered Sep 19 '22 20:09

Iain McManus