0

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

Raj
  • 5,665
  • 4
  • 26
  • 47

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
  • 50,758
  • 20
  • 93
  • 126
3

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

Connor
  • 62,633
  • 27
  • 143
  • 140
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,154
  • 1
  • 9
  • 19