AssistoLab / DropDown

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

how can we make row separator full width ? (separatorInset = .zero) #232

Open SogoGolf opened 5 years ago

SogoGolf commented 5 years ago

hi there, thanks for the great control.

how can we make the row separator, go full width ?

image

abdelmagied94 commented 4 years ago

You can override customCellConfiguration to adjust cell seperatorInset. However, adding option to do this is better.

dropDown.customCellConfiguration = { (index, item, cell) in
      cell.separatorInset = .zero
      cell.layoutMargins = .zero
}