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.
testNonAnimatedBoundsSize
1 parent d8aab01 commit ff2f467Copy full SHA for ff2f467
Tests/WaveTests/AnimatableUIViewPropertyTests.swift
@@ -97,6 +97,19 @@ final class UIViewAnimatablePropertyTests: XCTestCase {
97
}
98
99
100
+ func testNonAnimatedBoundsSize() {
101
+ let v = UIView()
102
+
103
+ let initialBoundsSize = CGSize(width: 50, height: 50)
104
+ let targetFrameSize = CGSize(width: 25, height: 25)
105
106
+ v.bounds.size = initialBoundsSize
107
+ v.animator.scale = CGPoint(x: 0.5, y: 0.5)
108
109
+ XCTAssertEqual(v.bounds.size, initialBoundsSize)
110
+ XCTAssertEqual(v.frame.size, targetFrameSize)
111
+ }
112
113
func testCenter() {
114
let view = UIView()
115
0 commit comments