Xin Lok
Xin Lok

Reputation: 529

How to copy folders containing classes to another project - swift

I want to move folders from one project in swift to another project. When I drag folders into the new project, it won't recognise many classes.

It works only when I create the classes one by one in new project and move its content one by one from old project.

And when i move the folder to new project, its colour becames blue and not yellow.

Any advise what I have to do in order to make everything works just by drawing the folders?

Upvotes: 0

Views: 196

Answers (1)

Que20
Que20

Reputation: 1549

When you say "drag and drop", you mean in the project's files or in XCode in the file panel?

If you drop just on the projects folders, just follow aBilal17's comment above.

If you add your file in your project, right in XCode, make sure they are also in the target they're supposed to be (the check mark in the inspector on the Identity and Type panel, under "Target Membership").

Upvotes: 1

Related Questions