3

Is there anything in swift that works like frameworks list in Xcode while using Obj-C? I want to know what modules I can use by default. e.g.. CoreData, CoreImage, etc.

Obj-Steve
  • 33
  • 4

1 Answers1

0

Method - 1

To use any Objective-C Framework in Swift, you need to create 'Bridging-header.h" file and import your framework there to use anywhere in your swift project.

To add Bridging header in Swift Project

Method - 2

You can direct import any framework.

E.g. import CoreData

The main problem is that Xcode doesn't provide "AutoComplete" option for "import" statement so that's the problem as of now.

Reference: Import Framework in Swift Project, Xcode

Edited:

Most Popular List of Swift Modules which you can get from Xcode:

https://github.com/andelf/Defines-Swift

Community
  • 1
  • 1
Sohil R. Memon
  • 9,404
  • 1
  • 31
  • 57