I recently added 4 SwiftUI view files to my project. When I look in the Navigator, they do not have the letter A next to them, and modifying them does not show an M. When I try to commit them to Git or push them to GitHub, they do not show up in the list. I have checked GitHub, and they do not exist there, so were not pushed in a previous commit. I have checked that each of them has my project checked in Target Membership. Also, when I build my project these views show up in the hierarchy of views, and function as intended. So clearly Xcode knows they are part of the app, but for some reason isn’t including them in the Git repository.
If I go to Source Control and choose New Git repository, I’m told that all files are already under source control. Does anyone know how to get these included?