0

I am very new to iOS who is trying to use swift in objective-c. I created a swift class in the objective-c project and i am able to call that class from an objective-c view controller.

The problem is if i make any changes in the swift code, it doesn't seem to be available immediately for objective-c class to access. Each time i change something in the swift class, i will have to build the project and only then it seems to be available in objective-c.

Is there a configuration that i am missing or it is expected to work this way by design?

rmaddy
  • 314,917
  • 42
  • 532
  • 579
golldy
  • 1,279
  • 1
  • 15
  • 31

1 Answers1

0

Please read this explanation from apple. Read the sub-heading "Importing Swift into Objective-C". The generation of header files might be the explanation for your issue. https://developer.apple.com/library/ios/documentation/Swift/Conceptual/BuildingCocoaApps/MixandMatch.html#//apple_ref/doc/uid/TP40014216-CH10-ID122.

barryjones
  • 2,149
  • 1
  • 17
  • 21