-4

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

Zee
  • 1,836
  • 21
  • 41
NSurajit
  • 383
  • 2
  • 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
  • 24,641
  • 28
  • 109
  • 162
NSurajit
  • 383
  • 2
  • 10