这段代码会增加引用计数吗?

Does this codes increase reference count?

这段代码会增加引用计数吗?

Q1。 collectionView capture reference increase reference count and ViewController doesn't deinit?

 @IBOutlet weak var collectionView: UICollectionView!

 .do(onNext: { [collectionView] in
               guard let cv = collectionView else { return }
                self.collectionView.isUserInteractionEnabled = self.collectionView.bounds.width == [=10=].x
                })

Q2。 pageScrollView 增加引用计数?

if let pageScrollView = self.pageViewController.view.subviews.filter ({ [=11=] is UIScrollView }).first as? UIScrollView {
            pageScrollView.rx.contentOffset
                .filter { [pageScrollView] _ in pageScrollView.isDragging }
}

Q1:是的,您明确地对 collectionView

进行了强烈的捕获引用

Q2:是的,您正在对 pageScrollView.

进行隐式强捕获引用