I have a Xamarin.Forms application which calls the backend. The backend gives a list of items. These items all have a type and a description. Based on the type, I need to decide what view element I need to create (entry, label, picker, checkbox etc..). Also the description should probably be a label, each view has it's own description.
How can I achieve this? I really have a hard time figuring this out..
Example: the backend gives a list with two objects. First object has phonenumer has a type, second element has a boolean as a type. The firstone should just create an entry and the second one should create a picker. Both rows/views should have a description, that could be just a label.