Contents

dataSource

The data source for the picker view.

Declaration

weak var dataSource: (any UIPickerViewDataSource)? { get set }

Discussion

The data source must adopt the UIPickerViewDataSource protocol and implement the required methods to return the number of components and the number of rows in each component.

See Also

Providing the picker data