kishoretheju / VFL-Cheatsheet

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Visual format language cheat sheet

  1. V or H to specify orientation(default is horizontal).
  2. | , Superview.
  3. - , for specifying default margin, -15- to specify different margin.
  4. @ , to specify priority to constraint.
  5. Views are enclosed inside []
  6. Constraints may be enclosed inside ()
  7. To specify names pass a dictionary of type ["viewName": view] as a parameter.
  8. To specify names to constant values pass a dictionary of type ["constantName": value(of type NSNumber)]
  9. To specify constraints on the perpendicular direction to orientation use layout options parameter.

About