Will I be able to restart my iPhone app programatically to apply language changes in Swift
ios, localization, swift
Solution
Swift is a language, not an API. You have the same functionality available to you in Swift as in Objective C, although the syntax and ease of use may differ between the languages.
The answer you linked to therefore already answers the question.
Also, as Hemang points out, don't do this.
It's symptomatic of bad design that you would need to restart the app to change the displayed language. It would be much better to fix the underlying problem than to apply a hacky band-aid solution such as this.
Problem
I am developing an iPhone app in swift and wanted localisation feature inside it. When the user selects a language in the app, the UI components such as labels/buttons,etc.,. fails to change the language and takes more time in some cases also. So i needed to manually restart my app when the users want to change the language. Can anyone please suggest me how to do that. Thanks in advance.