From d8a258f05d765e56b59b5c1078c5161ab3abb191 Mon Sep 17 00:00:00 2001 From: Ivan Smolin Date: Mon, 30 Jul 2018 17:48:15 +0300 Subject: [PATCH] add comment --- .../Extensions/UIKit/UIScrollView/UIScrollView+RxBindings.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Sources/Extensions/UIKit/UIScrollView/UIScrollView+RxBindings.swift b/Sources/Extensions/UIKit/UIScrollView/UIScrollView+RxBindings.swift index 5382e291..174fb3ac 100644 --- a/Sources/Extensions/UIKit/UIScrollView/UIScrollView+RxBindings.swift +++ b/Sources/Extensions/UIKit/UIScrollView/UIScrollView+RxBindings.swift @@ -28,6 +28,8 @@ public extension Reactive where Base: UIScrollView { /// Binder instance that updates contentInset bottom value. var bottomInsetBinder: Binder { return Binder(base) { base, value in + // Quick workaround. + // For some reason code in closure won't work without async call. DispatchQueue.main.async { base.contentInset.bottom = value base.scrollIndicatorInsets.bottom = value