Search
 
SCRIPT & CODE EXAMPLE
 

SWIFT

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
         }
}
Comment

PREVIOUS NEXT
Code Example
Swift :: swift javascript injection 
Swift :: swift access appdelegate from viewcontroller 
Swift :: alamofire failure response body 
Swift :: save codable in userdefaults ios swift 
Swift :: swift constraint center vertically 
Swift :: Decimal to Double conversion in Swift 
Swift :: Swift Properties 
Swift :: swift clear badge number 
Swift :: print an array in swift 
Swift :: swiftui pull to refresh 
Swift :: How to set back button text in Swift 
Swift :: link swiftui 
Swift :: swiftui background color 
Swift :: uiimage to data swift 
Swift :: custom tab bar swift ios 
Swift :: uitableview scroll to bottom swift 
Swift :: wkwebview load delegate in swift 
Swift :: map swift 
Swift :: Prime number or not program in swift basic programs 
Swift :: add callbacks to view swiftui 
Swift :: swift string 
Swift :: Swift if..else if 
Swift :: swiftui line break text 
Swift :: how to send a file from file manager in mail swift 
Swift :: Swift If-statement 
Swift :: swift do catch where 
Swift :: swift check if array has duplicates 
Swift :: appendBytes: Lengt: SWIFT 
Swift :: Generic Function Swift 
Swift :: Swift enum Associated Values 
ADD CONTENT
Topic
Content
Source link
Name
6+5 =