AspectScreen 0.1.2

AspectScreen 0.1.2

测试已测试
语言语言 SwiftSwift
许可证 MIT
发布最新版本发布日期2016年12月
SwiftSwift版本echo "3.0" >> .swift-version
SPM支持 SPM

Eugeny 维护。



  • hoppus

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 文件。