Change right to left view when change language in iOS


func switchViewControllers(isArabic : Bool){
     UIView.appearance().semanticContentAttribute = isArabic ? .forceRightToLeft : .forceLeftToRight      
}

Call above function when you change language from your App. if you set arabic language then set true in isArabic. and if you set English language then set false in isArabic.