ios - RxSwift PublishSubject 无意中被丢弃
<p><p>我有一个 ViewController ,它打开一个模态视图 Controller ,供用户从其库中选择图像。为此,我使用了我编写的 <code>DKImagePickerController</code> 的 Rx 包装器。</p>
<p>ViewController中的相关代码如下:</p>
<pre><code>fileprivate func addPicturesFromLibrary() {
guard let viewModel = self.viewModel else { return }
let pickerController = DKImagePickerController()
pickerController.singleSelect = false
pickerController.maxSelectableCount = 10
pickerController.showsCancelButton = true
pickerController.sourceType = .photo
pickerController.rx.didSelectAssets()
.debug("
页:
[1]