The above solution worked, thanks for the same.
In one of the other responses you mentioned regarding adding views using some properties present in the ViewController.
I was not able to find the property to add it to the location as in the image.
Can point me to the right direction to solve this.
Thanks in advance.