Skip to content

E13Lau/DotKit-SnapKit

Repository files navigation

DotKit+SnapKit

A description of this package.

Installation

dependencies: [
    .package(url: "https://github.com/E13Lau/DotKit-SnapKit.git", from: "0.0.2"),
]
pod 'DotKit+SnapKit', '~> 0.0.2'

Usage

UIView()
    .dk
    .backgroundColor(.red)
    .asSubviewAdd(to: view)
    .makeConstraints {
        $0.left.top.right.equalToSuperview()
        $0.height.equalTo(100)
    }