add comment
This commit is contained in:
parent
0b5b6e8358
commit
d8a258f05d
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue