0

Can we use both swift (.swft) and objective c (.h .m) in same xcode project ?

Raj
  • 5,895
  • 4
  • 27
  • 48

3 Answers3

6

Page 1 of Apple's Introduction:

Swift feels familiar to Objective-C developers. It adopts the readability of Objective-C’s named parameters and the power of Objective-C’s dynamic object model. It provides seamless access to existing Cocoa frameworks and mix-and-match interoperability with Objective-C code

Logan
  • 52,262
  • 20
  • 99
  • 128
3

Yes, you can. You might want to take a look at this.

Connor Pearson
  • 63,902
  • 28
  • 145
  • 142
1

Yes, except there are few limitations. For example Swift specific features are not accessible from Objective-C. For example Generics, Tuples , Nested Types etc.

Waruna
  • 1,174
  • 1
  • 9
  • 20