Skip to content

jalyResource/Layout

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Layout

CI Status Version License Platform

Example

仿 SnapKit 的布局框架。实现了SnapKit中常用功能。仅供参考。

Usage

SnapKit 用法如出一辙。ep:

lblGray.jl.makeConstraints { (make) in
    make.top.equalTo(100)
    make.left.equalToSuperview().offset(10)
    make.size.equalTo(CGSize(width: 120, height: 30))
}

lblCenter.jl.makeConstraints { (make) in
    make.center.equalTo(greenView.jl.center)
    make.height.equalTo(39)
}

// chain syntex
lblChainSyntex.jl.remakeConstraints { (make) in
    make.left.top.equalTo(lblRemake2)// .offset(20)
}

viewContainer.jl.makeConstraints { (make) in
    make.centerX.centerY.equalToSuperview()
    make.width.height.equalTo(300)
}

Author

wuzhenli, zhenli@6.cn

License

Layout is available under the MIT license. See the LICENSE file for more info.

About

仿 SnapKit 的布局框架。

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published