测试已测试 | ✗ |
语言语言 | SwiftSwift |
许可证 | MIT |
发布最新版本发布日期 | 2016年12月 |
SwiftSwift版本 | echo "3.0" >> .swift-version |
SPM支持 SPM | ✗ |
由 Eugeny 维护。
AspectScreen 是一个用于计算屏幕空间点的轻量级纯 Swift 实现组件。
let width = AspectScreen.partOfScreen(part: 0.5, type: .width)
let height = AspectScreen.partOfScreen(part: 0.5, type: .height)
let view = UIView(frame: CGRect(x: 0, y: 0, width: width, height: height))
AspectScreen 的作者是 Eugeny Popov。
AspectScreen 在 MIT 许可证下可用。有关更多详细信息,请参阅 LICENSE 文件。