Open Rushang007 opened 7 years ago
//Use it to change direction off table view with language dropdown.semanticContentAttribute=UIApplication.isRTL() ? .forceLeftToRight : .forceLeftToRight //use it to change textAlign dropDown.customCellConfiguration = { (index: Index, item: String, cell: DropDownCell) -> Void in // Setup your custom UI components cell.optionLabel.textAlignment = .right }
if LanguageManager.shared.isRightToLeft {
dropDown.layer.setAffineTransform(CGAffineTransform(scaleX: -1, y: 1))
dropDown.customCellConfiguration = { (index: Index, item: String, cell: DropDownCell) -> Void in
// Setup your custom UI components
cell.optionLabel.layer.setAffineTransform(CGAffineTransform(scaleX: -1, y: 1))
}
}
currently i'm use like this:-
QtydropDown.anchorView = cell.button my button in right side but dropdown open in left side....... plz help....