Reputation: 1657
I have swift 4 project, recently pull from another branch. But whenever i want to import any class which is already exist in project show me the error "No such module..."
. Please suggest me what is wrong.
Upvotes: 1
Views: 1047
Reputation: 976
In Swift, if a class already exist in project then you don't need to import it; you can directly use its properties by creating its instance. but if you have problem with it then you need to check target membership for the class. it should be checked for the project like in my example in pics
Upvotes: 2
Reputation: 894
You don't need to import files in Swift as they are globally available. In Swift you can only import module, e.g. any framework.
Upvotes: 6