使用 attainassertautolayout
为 Swift 提供自动布局测试用例。
从为 UnsatisfiableConstraintss 定制的 UIViewAlert 中找到了模糊的布局。
需求
- 此功能在真实设备上不可用。应在 iPhone 模拟器上运行。
支持的版本
iOS 9.0 ~ Swift 4.2 ~
说明
Carthage
github "tarunon/XCTAssertAutolayout"
CocoaPods
将其编写在Pods测试下方。
pod 'XCTAssertAutolayout'