I try to create a library called MyLib
using RxSwift as dependency, which using cocoapod command pod lib create
. However, the following code doesn't work.
import UIKit
import MyLib
class ViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
// compile error: Use of unresolved identifier 'Observable'
Observable.just("")
}
}
It only works after I add import RxSwift
I would like to just import MyLib
only, have any ideas?
Thanks!