How do I create a bridge header in swift 4?
Answer / Mohd Nadeem
To create a bridge header in Swift 4, you can follow these steps:
1. Create a new Swift file and give it the extension .h instead of .swift.
2. Include any Objective-C headers that your Swift code will be accessing at the top of the file.
3. Use the @objc attribute before any classes, protocols, or methods that you want to make available to Objective-C code.
| Is This Answer Correct ? | 0 Yes | 0 No |
How multiple line comment can be written in swift?
Can enum be extended in swift?
What is dynamic keyword in swift?
Is swift written in c++?
What is memory leak in swift?
How do you implement delegates in swift?
What is $0 in swift?
What are the control transfer statements in swift?
Is singleton thread safe swift?
What is instance variable in swift?
What are generics? How to make a method or variable generics in swift?
What is thread in swift?