DropDown() pod to set seperator color and background color iOS swift

Problem:

I'm using dropdown pod file for my app for dropdown show.I want to add selection background color,Background color, seperator color and it will show seperator for x value after some bounds.So want to show seperator from x = 0

 Solution:

        let dropDown = DropDown()

        dropDown.anchorView = btn

        dropDown.selectionBackgroundColor = .gray

        dropDown.direction = .any

        dropDown.backgroundColor = .white

        dropDown.separatorColor = .gray

        dropDown.customCellConfiguration = { (index: Index, item: String, cell: DropDownCell) -> Void in

            cell.separatorInset = UIEdgeInsets.zero

        }

Comments

Popular posts from this blog

Invalid bundle error while upload the app to the app Store

Convert NsNumber, NSDate to String in iOS Swift

Global LocationManager Singleton class iOS Swift