For a project I needed to add a UIPickerView with custom cells using AutoLayout. UIKit allows this via the UIPickerViewDelegate method pickerView(_:viewForRow:forComponent:reusingView).
The cell just needed an UIImageView and UILabel, so I thought it would be pretty straightforward to do, but there are some caveats you need to know. Big thanks to Tom Adriaenssen for pointing them out and not ruining my Sunday afternoon 🙂
Continue reading Custom cells for UIPickerView with AutoLayout