Skip to content

iOS08-Shook-Team/EasyLayout

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EasyLayout for iOS

Documentation(KR)

🔧 Installation

EN

EasyLayout can be installed using Swift Package Manager.
To add it to your project, open Xcode and go to File -> Add Packages...,
search for https://github.com/iOS08-Shook-Team/EasyLayout and add the package as your project's dependency.

KR

EasyLayout은 Swift Package Manager를 통해 설치할 수 있습니다.
프로젝트에 추가하려면 Xcode를 열고 File -> Add Packages로 이동한 후,
https://github.com/iOS08-Shook-Team/EasyLayout를 검색해 패키지를 프로젝트의 의존성으로 추가합니다.

📓 Quick Start - Usage

import EasyLayout

final class ViewController: UIViewController {
    let redView = UIView()
    
    override func viewDidLoad() {
        super.viewDidLoad()
        
        view.addSubview(redView)
        redView.backgroundColor = .red
        redView.ezl.makeConstraint {
            $0.top(to: view)
                .size(with: 100)
        }
    }
}

📜 License

MIT license