fahidattique55 / FAPanels

FAPanels - Swift
Apache License 2.0
851 stars 90 forks source link

how to reload rootviewcontroller? #31

Closed parth0072 closed 6 years ago

parth0072 commented 6 years ago

Hey

I am using fapanels in my application it's working fine in my app. but I implemented the localization in my app for localization we need to reload rootview controller to change the language without close the app. I tried multiple ways to reload rootview controller but it's not working.

Any idea? please let me know if you have any idea of this??

Thanks :)

fahidattique55 commented 6 years ago

@parth0072

The simplest way to do this is register for an observer in your root class and when you change the localisation in-app then fire a notification and the observer will trigger a function call. You can add your business logic there.