BayKit 1.0.1

BayKit 1.0.1

Cem Tuncelli 维护。



BayKit 1.0.1

  • 作者
  • BayCem

BayKit

目录


安装

CocoaPods

CocoaPods 是 Cocoa 项目的依赖管理器。您可以使用以下命令安装它

$ gem install cocoapods

要使用 CocoaPods 将 BayKit 集成到您的 Xcode 项目中,请在 Podfile 中指定它

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '10.0'
use_frameworks!

target '<Your Target Name>' do
    pod 'BayKit', '~> 1.0.1'
end

然后,运行以下命令

$ pod install

用法

import BayKit

class MyViewController: UIViewController {
    lazy var box = UIView()
    let magicOffset = BayKit()

    override func viewDidLoad() {
        super.viewDidLoad()
        view.addSubview(box)
        box.leadingAnchor.constraint(equalTo: view.trailingAnchor, constant: magicOffset.offseter(scaleFactor: 1.0, 
        offset: 24, direction: .horizontal, currentDeviceBound: BayKit.DeviceList.iPhone5.screenWidth)).isActive = true
    }
}

贡献

第一步

  • 选项 1

    • 分支此仓库。
  • 选项 2

    • 使用 https://github.com/BayCem/BayKit.git 将此仓库克隆到您的本地机器。

第二步

  • 开始编程吧! 🔨🔨🔨

第三步

  • 🔃创建一个新的拉取请求。

许可证