add comment

This commit is contained in:
Ivan Smolin 2018-07-30 17:48:15 +03:00
parent 0b5b6e8358
commit d8a258f05d
1 changed files with 2 additions and 0 deletions

View File

@ -28,6 +28,8 @@ public extension Reactive where Base: UIScrollView {
/// Binder instance that updates contentInset bottom value.
var bottomInsetBinder: Binder<CGFloat> {
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