AssistoLab / DropDown

A Material Design drop down for iOS
MIT License
2.44k stars 622 forks source link

Is there support for localization? #238

Open carlosandresSanchez opened 5 years ago

carlosandresSanchez commented 5 years ago

If a set Arabic as the language of the application, the dropdown appears in the other side of the screen. It seems it displays the dropdown as if the language of the application were English all the time. Is there a way to deal with this?

jithin-k commented 5 years ago

@carlosandresSanchez Did you try setting the semanticContentAttribute for the drop down? This one worked for me:

dropDown.semanticContentAttribute = .unspecified

markhorix commented 5 years ago

@carlosandresSanchez Did you try setting the semanticContentAttribute for the drop down? This one worked for me:

dropDown.semanticContentAttribute = .unspecified

Worked for me. :)

meetiosdev commented 4 years ago

@carlosandresSanchez Did you try setting the semanticContentAttribute for the drop down? This one worked for me: dropDown.semanticContentAttribute = .unspecified

Worked for me. :)

not working, please help

aalaaeid commented 1 year ago

DropDown.appearance().semanticContentAttribute = .forceLeftToRight Solved it for me

abdalazeezalyosfi commented 1 year ago

this worked for me

     dropDown.customCellConfiguration = { (index: Index, item: String, cell: DropDownCell) -> Void in
            cell.optionLabel.textAlignment = AppLanguageManager.isRightToLeft ? .right : .left  
        } 
qzmp2000 commented 1 year ago

@carlosandresSanchez Did you try setting the semanticContentAttribute for the drop down? This one worked for me:

dropDown.semanticContentAttribute = .unspecified

worked for me, thanks a lot