lahaigo.blogg.se

Objective c to swift migration
Objective c to swift migration




objective c to swift migration

Set up the channel ID and callback handling in the AppDelegate file.Ĭall the LoginManager. For detailed steps, see Setting up your project. You can safely remove the LineSDKConfig entry from the file as the entry is not needed anymore.

  • If you used a downloaded binary, just remove it from your project.Ĭlean up your ist file.
  • You’d prefer to write the new/changed code in Swift. You want to add a new feature to the existing class, or you want to make substantial changes to part of the class.

    objective c to swift migration

    Then perform a clean installation to remove the reference to the amework file from your project. Piecemeal conversion of an Objective-C class to Swift Imagine the following scenario: You have a fairly large and complex Objective-C class. If you used a package manager such as CocoaPods and Carthage, remove the "LineSDK" entry from your package definition file (Podfile or Cartfile).Remove the old amework file from your code base. However, if you want to make changes based on your current implementation, here are some general steps: To upgrade the SDK, it is recommended to remove all code lines related to the old SDK and perform a clean installation by following the steps in Setting up your project, whether you are using a legacy version in either language. To learn how to use the SDK with Objective-C code, see Using the SDK with Objective-C code.

    objective c to swift migration

    However, you can still use the new SDK with Objective-C code. The new LINE SDK for iOS Swift is designed for Swift projects.






    Objective c to swift migration