SnapKitten — Swift library for linear layout

let userProfile : UIView = 
let userProfile : UIView = Kitten.horizontal().from().defaultAlignment(.start)
userProfile.backgroundColor = UIColor.orangelet bottomMenu =
let scrollView = UIScrollView()Kitten.create(.vertical).from(viewController).isAlignDirectionEnd(true).add(userProfile).alignSideStart()
pod "SnapKitten"
import UIKit
import SnapKitten
import PlaygroundSupport

let virtualView = UIView(frame: CGRect(x: 0, y: 0, width: 320, height: 100))
virtualView.backgroundColor = UIColor.gray
PlaygroundPage.current.liveView = virtualView

let iv = UIImageView()
iv.backgroundColor =
let lblA = UILabel()
lblA.text = "Hello World"
lblA.backgroundColor =

let simpleComponent = Kitten.horizontal().from()
simpleComponent.backgroundColor =

//some java code example
Kitten.create(KittenOrientation.vertical) .from(mainView).isAlignDirectionEnd(true) .add(temp).align(KittenAlignment.parent) .add(imageView)

Thank you for your reading!



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store