▲ 1 r/Xcode+2 crossposts

I have a beginner question

I am familiar with coding concepts but am new to swift

I am trying my hand at developing a small app to generate labels. The app pulls data from a .csv file then parses the data to generate the label.

I am curious if there is a way to add/search a .csv file in the Assets folder for in app definitions ie (code returns “BLK” from an array). Can I search a document to find that “BLK” = “Black”? I am just using that as an example, not all of the strings returned are colours. I am trying to avoid defining every item individually using if {} else {}.

I appreciate any guidance.

reddit.com
u/H0KB — 14 days ago