File tree 1 file changed +6
-2
lines changed
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -316,8 +316,11 @@ open class PageboyViewController: UIViewController {
316
316
/// - Parameters:
317
317
/// - index: The index to delete the page from.
318
318
/// - updateBehavior: Behavior to execute after the page was deleted.
319
- open func deletePage( at index: PageIndex ,
320
- then updateBehavior: PageUpdateBehavior = . doNothing) {
319
+ open func deletePage(
320
+ at index: PageIndex ,
321
+ then updateBehavior: PageUpdateBehavior = . doNothing,
322
+ completion: @escaping ( ) -> Void = { }
323
+ ) {
321
324
verifyNewPageCount ( then: { ( oldPageCount, newPageCount) in
322
325
assert ( index < oldPageCount,
323
326
" Attempting to delete page at \( index) but there were only \( oldPageCount) pages before the update " )
@@ -349,6 +352,7 @@ open class PageboyViewController: UIViewController {
349
352
} } ,
350
353
completion: { ( _) in
351
354
self . view. isUserInteractionEnabled = true
355
+ completion ( )
352
356
} )
353
357
} )
354
358
}
You can’t perform that action at this time.
0 commit comments