Today, we will learn how to read the JSON file from your project file system & parse the content using JSONDecoder class. Of course, we are going to show the results in the basic table view.

Photo by Ferenc Almasi on Unsplash

Before going forward here is the link you can find the code.

readLocalJSONFile function will take the file name as input & return contents as a Data object.

  • First, we need to find the file path in the bundle. So we are using Bundle.main.path method to get the file path.
  • If the file path exits, we are going to convert the file path…


Today, we will learn how to manage colors in our iOS app. How can we easily & efficiently access the colors & apply them to any UIKit components? Let’s check it out.

iOS Simulator showing multiple UIViews with different colors
iOS Simulator showing multiple UIViews with different colors
iOS simulator having multiple UIViews with different background colors

In the above extension code, we have some initializers & methods. Let me explain each one in detail.

Before going forward here is the link you can find the code.

Praveen Kommuri

Engineer, Traveller & Dreamer

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store