This may probably basic question but I'm not sure how to proceed
I have an object from struct
struct EmployeeInfo {
let name: String
let city: String
let phone: [Phone]
let email: String
}
struct Phone {
let direct: String?
let cell: String?
let home: String?
}
Phone struct has optional values
In table view I want to display Name, Phone, Email, City in this order
My Question is Do I have to manually parse this to array with the order I want and then populate UI?
I could do if i use static UI, but I want this to be in tableview for other reasons.
Please advice