NKFrameLayoutKit
NKFrameLayout 是一款针对 iOS 和 tvOS 的超快且易于使用的布局库。
关于 Swift 版本,请查看这里: FrameLayoutKit
示例
要运行示例项目,请克隆仓库,然后首先从 Example 目录中运行 pod install
命令。
需求
安装
NKFrameLayoutKit 通过 CocoaPods 提供。要安装它,只需将以下行添加到您的 Podfile 中:
pod "NKFrameLayoutKit"
Hello world
let image = UIImage(named: "earth.jpg")
let label = UILabel()
label.text = "Hello World"
let layout = NKDoubleFrameLayout(direction: .horizontal, andViews: [image, label])
layout.spacing = 5
layout.frame = self.bounds
Benchmark
见: 布局库基准项目
待办事项
- CocoaPods 支持
- Objective-C 版本
- Swift 版本
- 示例
- 文档
作者
Nam Kennic, [email protected]
许可协议
NKFrameLayoutKit 在 MIT 许可协议下可用。有关更多信息,请参阅 LICENSE 文件。