My app uses a NASA API to get images from the mars rover. The file where I keep the api key is called Constrant.swift. I tried to hide this file by creating a .gitingore file. I typed Constrant.swift into the .gitignore file and then pressed save and pushed all of the files to GitHub. The problem that I am having is that when I pushed all of the files the Constrant.swift was all pushed and was not ignored. The api key is not that important, but I would still like to know what I did wrong and how to fix it.
The link to the repository is here. As you can see the .gitignore file is still there and has Constrant.swift. However, when you press nasaAPI, the Constrant.swift file is still there. Also I created the .gitignore file before I added the Constrant.swift file. How would I remove this file from GitHub and hide it in the .gitignore file?