We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 15eb344 commit 3eeec15Copy full SHA for 3eeec15
Tests/YCoreUITests/Extensions/UIKit/UIView+constrainAspectRatioTests.swift
@@ -49,14 +49,12 @@ final class UIViewContrainAspectRatioTests: XCTestCase {
49
let sut = makeSUT()
50
containerView.addSubview(sut)
51
52
- let ratio: CGFloat = 0.5
+ let ratio: CGFloat = 0.7
53
let height: CGFloat = 300
54
sut.constrain(.heightAnchor, constant: height)
55
-
56
// Act
57
sut.constrainAspectRatio(ratio)
58
sut.layoutIfNeeded()
59
60
// Assert
61
XCTAssertEqual(sut.bounds.width, ratio * sut.bounds.height)
62
XCTAssertEqual(sut.bounds.height, height)
0 commit comments