XCode transfer problem to GITHUB

Hello guys, today I want to tell you about the problem and solution I have in my swift project.
As you know, github is an indispensable platform for developers, we can do many more operations such as sharing our projects with our friends within github, planning and managing our projects with other people.

Now, we will try to transfer the codes we will create in SwiftUI environment to GITHUB and after transferring it to githuba, the created content is empty and we will try to find a solution to this problem together.
If the same situation happened to you, I would like to help you with the sample solution method.

iOS Developer