Appletone / SwiftObjcCocoapodsExample

Swift and Objective-C mix and match example

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SwiftObjcCocoapodsExample

Swift ,Objective-C and Cocoapods mix and match example

It demonstrated :

  • Swift calling Swift function
  • Swift calling Objective-C function
  • Objective-C calling Swift function
  • Swift calling Objective-C function from Swift function
  • and integrated Cocoapods with powerful libs created by Objective-C

#ViewController.swift

// call Swift
SwiftIPManager.getIP()

// call ObjC
ObjcIPManager.getIP()

// from Objc call Swift
ObjcIPManager.getIPFromSwift()

About

Swift and Objective-C mix and match example


Languages

Language:Swift 78.0%Language:Objective-C 18.9%Language:Ruby 3.1%