UIConstraintValue
这是一个简单的 Swift 扩展,允许在相同的 trait 上为不同的屏幕尺寸设置不同的约束值。它大量灵感来源于 Layout-Helper [https://github.com/tryWabbit/Layout-Helper]
安装
将 UIConstraintValue
添加到您的 podspec 中。在项目文件夹中运行 pod install
。
如何使用它
选择您要为特定设备类型设置值的约束。在 XCode 的 属性检查器 中添加值。
这是一个简单的 Swift 扩展,允许在相同的 trait 上为不同的屏幕尺寸设置不同的约束值。它大量灵感来源于 Layout-Helper [https://github.com/tryWabbit/Layout-Helper]
将 UIConstraintValue
添加到您的 podspec 中。在项目文件夹中运行 pod install
。
选择您要为特定设备类型设置值的约束。在 XCode 的 属性检查器 中添加值。