There is a behavior in Xcode that is bugging me for quite a while now:
When I create a new file, and I want this file to be inside a folder, I go to File > New > File > New swift file.
Then I create a new folder for the file, lets say Scene1 and, add the file there:
However, in Xcode, the current relative file path is the root of the project:
So, I try moving the file to the right location and creating a group for it, but (probably because the folder already exists), I got the error:
Could not rename “New Group” to “Scene1”.
Then I have to manually drag the folder from Finder to Xcode, mark Create Groups and Copy items if needed every time I need a new file.
What is the best way to create files in Xcode without this path mess?

