How to write the code below by clicking on the Segmentedcontrols to bring ImageView in TableView cell?

In the TextLabel is the results of the computation cm. a screenshot of the ie Result: MINERAL . How to write the code below the result table from excel 59d200ce294ba251182846.png for example, the result of MINERAL and pressed segments i.e. set Jug Cartridge and accordingly display the image in the table 59d201809395b266866776.png
June 14th 19 at 20:58
1 answer
June 14th 19 at 21:00
You need to make the matching result of all the responses and pictures
for example I implemented the following variant with enum and string values to hash values:
Github gist

Find more questions by tags Swift