LayoutItKit
特色功能
-
ℹ️ 添加 LayoutItKit 功能
示例
示例应用程序是查看 LayoutItKit
使用情况的最佳方式。只需打开 LayoutItKit.xcodeproj
并运行 Example
方案即可。
安装
CocoaPods
LayoutItKit 通过 CocoaPods 提供。要安装它,只需将以下行添加到 Podfile 中:
pod 'LayoutItKit'
Carthage
Carthage 是一个去中心化的依赖管理工具,它能构建你的依赖并提供二进制框架。
要使用 Carthage 在 Xcode 项目中集成 LayoutItKit,请在你的 Cartfile
中指定它。
github "abraaolevi/LayoutItKit"
运行 carthage update
以构建框架,并将构建完成的 LayoutItKit.framework
拖动到你的 Xcode 项目中。
在你的应用目标的“构建阶段”设置选项卡中,点击“+”图标,选择“新运行脚本阶段”,并添加在 Carthage 入门步骤 4、5 和 6 中提到的框架路径。
Swift 包管理器
要使用 Apple 的 Swift 包管理器 进行集成,请将以下内容添加到你的 Package.swift
中作为依赖项。
dependencies: [
.package(url: "https://github.com/abraaolevi/LayoutItKit.git", from: "1.0.0")
]
或者,导航到你的 Xcode 项目,选择 Swift Packages
,然后点击“+”图标以搜索 LayoutItKit
。
手动方式
如果你不希望使用任何上述依赖管理器,你可以手动将 LayoutItKit 集成到项目中。只需将 Sources
文件夹拖动到你的 Xcode 项目中即可。
使用方法
贡献
非常欢迎贡献
许可证
LayoutItKit
Copyright (c) 2020 LayoutItKit [email protected]
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.