-4

How to add .swift file into existing Objective-c project and make access to objective-c file

Zee
  • 1,865
  • 21
  • 42
NSurajit
  • 413
  • 4
  • 10

1 Answers1

-1
  1. Create .swift file suppose newSwiftController.swift
  2. automatically bridging file get appeared allow it to be created.
  3. add #import "ProjectName-Swift.h" into implementation .m file where you want to access your newly created .swift file.
  4. go to project target - Build Setting -> search for Defines module and set it to YES
LinusGeffarth
  • 27,197
  • 29
  • 120
  • 174
NSurajit
  • 413
  • 4
  • 10