MoathOthman / MOLH

Localization helper for iOS apps mainly focusing on the LTR/RTL issue
MIT License
117 stars 36 forks source link

UIDatePicker & UISearchBar not changing language after reset #65

Open iqra-padela opened 3 years ago

iqra-padela commented 3 years ago

I am changing the root in the reset method on language change. But the date picker and UISearchBar is not showing the correct language. Only after the app has restarted is the view being correctly updated.

MoathOthman commented 3 years ago

@aledap

Some controls such as ActionSheetDatePicker have locale property so you can set them appropriately e.g.

actionSheetDatePicker?.locale = Locale(identifier: MOLHLanguage.currentLocaleIdentifier())
fifisamy commented 2 years ago

This not work without Restart App

SyedRafayAbrar commented 2 years ago

@aledap

Some controls such as ActionSheetDatePicker have locale property so you can set them appropriately e.g.

actionSheetDatePicker?.locale = Locale(identifier: MOLHLanguage.currentLocaleIdentifier())

can you tell me how can we change UIActivityController