mirror of
https://github.com/material-components/material-components-ios.git
synced 2026-02-20 08:27:32 +08:00
The example showing how to use MDF Internationalization's language direction code was somewhat inefficient, calling the method twice on the same string. Instead it should be called once and the result checked. In manual testing, dropped overhead from 0.8% of Main Thread time to 0.4% while scrolling the example.