Swift Call(ed) by ObjectiveC

Swift 搭配 Cocoapod

執行完pod install之後
新增Bringing Header設定, project_name/project_name-Bridging-Header.h.
下圖的project_name為MyApp,所以名稱為MyApp/MyApp-Bridging-Header.h

新增Bringing Header

// MyApp-Bridging-Header.h
#import <ReactiveCocoa/ReactiveCocoa.h>

Source :

Swift & Cocoapods

Source :

How to call Objective C code from Swift