3 Commits

Author SHA1 Message Date
Randall Li
502bc5d910 Ran a Swift formatter
PiperOrigin-RevId: 395947664
2021-09-10 09:48:14 -07:00
Robert Moore
675235ed05
{Tests} Deallocate test objects at the end of tests. (#5397)
Deallocating many of the properties created for each unit test. Since all
XCTestCase instances survive until the end of the test suite, any properties
created for a test will be preserved as well. This frees up around 3.7 MB
(~6%) of memory from the entire test suite, as measured on my desktop.

|Before|After|
|----|----|
|![test-objcs-before](https://user-images.githubusercontent.com/1753199/46813473-c3b9bd00-cd44-11e8-990c-28dff4ab5ad2.png)|![test-objcs-after](https://user-images.githubusercontent.com/1753199/46813481-c7e5da80-cd44-11e8-90e4-2e6d532ebbfb.png)|

See also: https://qualitycoding.org/xctestcase-teardown/

Closes #5395
2018-10-12 08:33:58 -04:00
featherless
32fe4e191a
[NavigationBar] Update layout when button bar sizes change. (#4992)
Prior to this change, changing the title of a button would often result in the button's label being clipped because the navigation bar was not updating its button bar frames when needed.

After this change, the navigation bar makes use of 471936b842e7473e51b5dc02df619a7e67a0c5b2 to react to changes in the intrinsic content size of the button bar.

## Before

| Before changing title | After changing title |
|:----------|:------------|
| ![simulator screen shot - iphone x - 2018-08-31 at 16 20 30](https://user-images.githubusercontent.com/45670/44934442-d51dab80-ad3a-11e8-9313-056e135de150.png) | ![simulator screen shot - iphone x - 2018-09-07 at 09 29 39](https://user-images.githubusercontent.com/45670/45221807-9d55bd00-b280-11e8-92c4-07e0bc409d64.png) |

## After

| Before changing title | After changing title |
|:----------|:------------|
| ![simulator screen shot - iphone x - 2018-08-31 at 16 20 30](https://user-images.githubusercontent.com/45670/44934442-d51dab80-ad3a-11e8-9313-056e135de150.png) | ![simulator screen shot - iphone x - 2018-08-31 at 16 20 32](https://user-images.githubusercontent.com/45670/44934447-d64ed880-ad3a-11e8-9c67-67e50995fce0.png) |

Closes https://github.com/material-components/material-components-ios/issues/1717
2018-09-10 16:17:23 -04:00