@@ -310,6 +310,9 @@ final class RideauHostingView: RideauTouchThroughView {
310
310
let newresolvedState = resolve ( configuration: self . configuration)
311
311
resolvedState = newresolvedState
312
312
313
+ hasTakenAlongsideAnimators = false
314
+ prepareAlongsideAnimators ( )
315
+
313
316
if let initial = newresolvedState. resolvedSnapPoints. last {
314
317
updateLayout ( target: initial, resolvedState: newresolvedState)
315
318
} else {
@@ -333,8 +336,12 @@ final class RideauHostingView: RideauTouchThroughView {
333
336
// It had to update layout, but configuration for layot does not have changes.
334
337
return
335
338
}
339
+
336
340
resolvedState = newresolvedState
337
341
342
+ hasTakenAlongsideAnimators = false
343
+ prepareAlongsideAnimators ( )
344
+
338
345
guard
339
346
let snapPoint = newresolvedState. resolvedSnapPoint ( by: currentSnapPoint. source) ?? newresolvedState. resolvedSnapPoints. first
340
347
else {
@@ -355,10 +362,6 @@ final class RideauHostingView: RideauTouchThroughView {
355
362
356
363
preventCurrentAnimations: do {
357
364
358
- if #available( iOS 11 , * ) {
359
- prepareAlongsideAnimators ( )
360
- }
361
-
362
365
animatorStore. allAnimators ( )
363
366
. forEach {
364
367
$0. pauseAnimation ( )
@@ -486,10 +489,6 @@ final class RideauHostingView: RideauTouchThroughView {
486
489
containerDraggingAnimator? . pauseAnimation ( )
487
490
containerDraggingAnimator? . stopAnimation ( true )
488
491
489
- if #available( iOS 11 , * ) {
490
- prepareAlongsideAnimators ( )
491
- }
492
-
493
492
let targetScrollView : UIScrollView ? = {
494
493
495
494
guard let gesture = gesture as? RideauViewDragGestureRecognizer else {
0 commit comments