Skip to content

rkovacevic/RKLayout

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.