Skip to content

Latest commit

 

History

History
20 lines (12 loc) · 785 Bytes

File metadata and controls

20 lines (12 loc) · 785 Bytes

RKLayout

Simple layout manager for iOS.

How to add to your project

To use, just drag the RKLayout directory to your XCode project.

Features

  • Stack views horizontally, vertically or in a grid
  • Set constant spacing between views, or stretch the spacing, so that the whole container view is filled
  • Align views relative to container (top, bottom, center, left, right, and all combinations)
  • Animations are supported for all properties

Usage

See RKLayoutExample project for usage.

Basic idea: You create an istance of RKLayout, set mode (horizontal, vertical or grid), and add subviews to it. Subview positions will then automatically be adjusted according to the selected mode. Note that subview size will never be changed by the layout manager.