mirror of
https://github.com/material-components/material-components-ios.git
synced 2026-02-20 08:27:32 +08:00
### The problem The MDCPageControl has never respected user interface layout direction. ### The solution Make the MDCPageControl capable of respecting user interface layout direction through the addition of a `respectsUserInterfaceLayoutDirection` property. Here is a gif of the new RTL behavior, with `respectsUserInterfaceLayoutDirection` set to `YES`:  Here is a gif of the preexisting LTR behavior, with `respectsUserInterfaceLayoutDirection` set to `NO`:  Note that this PR also updates the PageControl typical use example to use this new API. Closes #5608.