Building an iOS application using swift 3

93 Views Asked by At

I'm relatively new to iOS development but have completed some online course. I have a design question.

QUESTION:

I have 5 different sets of data, 2 of the data sets have the same fixed properties, the other three data sets have fixed stored properties as well but are different from the others. I want a user to be able to rate each item in the data sets one to three.

I figured the ratings could be:

enum conditions {
    case 1
    case 2
    case 3 
}

I'm not sure if I want to use structs or enums to describe the rest of the data.

What would you recommend?

0

There are 0 best solutions below