Skip to content
/ KSLayout Public

A tiny iOS library that helps to automatically layout subviews in a container view by creating the necessary constraints

License

Notifications You must be signed in to change notification settings

cbot/KSLayout

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

KSLayout

KSLayout is a tiny library that helps to automatically layout subviews in a container view by creating the necessary constraints.

Installation

Use CocoaPods to add KSLayout to your project. Just add the following line to your Podfile.

pod 'KSLayout', '~> 1.0.3'

Example

[self.container setSubviewsStacked:@[view1, view2, view3, view4, view5] layoutDirection:KSLayoutDirectionVertical settings:^(KSLayoutSettings *settings) {
	settings.subviewSpacing = 10;
	settings.subviewSize = 45;
	settings.containerPadding = UIEdgeInsetsMake(10, 10, 10, 10);
}];

About

A tiny iOS library that helps to automatically layout subviews in a container view by creating the necessary constraints

Resources

License

Stars

Watchers

Forks

Packages

No packages published