1

I have an existing App that was constructed using Objective-C.

My question is. How can I convert my App to use Swift code or do I have to recreate my App using Swift code?

Martijn Pieters
  • 1,048,767
  • 296
  • 4,058
  • 3,343
Archie Reyes
  • 527
  • 2
  • 14
  • 4
    Apple has provide very good document on this : https://developer.apple.com/library/ios/documentation/Swift/Conceptual/BuildingCocoaApps/index.html#//apple_ref/doc/uid/TP40014216-CH2-XID_0 – CRDave Apr 23 '15 at 06:13
  • Thanks for this. Now I know what to do. – Archie Reyes Apr 23 '15 at 06:24
  • Possible duplicate of [How to convert Giant project Objective C to Swift](https://stackoverflow.com/questions/52942575/how-to-convert-giant-project-objective-c-to-swift) – Suraj Rao Apr 11 '19 at 11:26

1 Answers1

1

You can't just convert your code to Swift. You would have to rewrite it.

Keep in mind that you can use both Swift and Objective-C together in the same project.

Swift and Objective-C in the Same Project

Fogh
  • 1,275
  • 1
  • 21
  • 29