How to add .swift file into existing Objective-c project and make access to objective-c file
Asked
Active
Viewed 691 times
1 Answers
-1
- Create
.swiftfile supposenewSwiftController.swift - automatically bridging file get appeared allow it to be created.
- add
#import "ProjectName-Swift.h"into implementation .m file where you want to access your newly created.swiftfile. - go to project target - Build Setting -> search for Defines module and set it to YES
LinusGeffarth
- 24,641
- 28
- 109
- 162
NSurajit
- 383
- 2
- 10