I cannot find a way to create a picker where the components are grouped and aligned with titles. My picker needs to allow multiple types of information to be selected, some of it is composite numbers (i.e. select digits for thousands, hundreds, tens and units). I have mocked it up here.
I need a done button, the titles should be centred over the groups and I need a decent space (say 10 pixels) between the titles and the picker data. I have been doing lots of reading on pickers and understand how to use them, but I am really struggling to find a simple way to format them into groups.

The layout is basically a horizontal stack view with
distribution = .fillEquallyandalignment = .fill, containing 4 vertical stack views, each withdistribution = .fillandalignment = .center. This is assuming that all the pickers have the same height, and all the texts have the same height.With this many picker views, it would be a pain to have their data sources and delegates all in one place. I'd write some convenient custom
UIPickerViews first - one for selecting n digits, and one for selecting Yes/No.The code may be long, but most of it is boilerplate.
Then it's just composing these with stack views. You can tweak the constraints to give appropriate widths and heights for each picker.
You would access
hePicker.selectedNumberetc for each picker's selected number.Output: