Answers for "rtl ios swift"

1

rtl ios swift

func switchViewControllers(isArabic arabic : Bool){

        if arabic {
            UIView.appearance().semanticContentAttribute = arabic ? .forceRightToLeft : .forceLeftToRight
            let appDelegate = UIApplication.shared.delegate as? AppDelegate
            let homeViewController = HomeViewController()
            appDelegate?.window?.rootViewController = homeViewController
         }
}
Posted by: Guest on June-03-2020

Code answers related to "Swift"

Browse Popular Code Answers by Language