Skip to content

Commit

Permalink
Merge pull request #14 from DeluxeAlonso/development
Browse files Browse the repository at this point in the history
Development to master for 1.3.2 version
  • Loading branch information
DeluxeAlonso authored Jul 13, 2021
2 parents 5a84595 + 7660088 commit 8e77664
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion DLAutoSlidePageViewController.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'DLAutoSlidePageViewController'
s.version = '1.3.1'
s.version = '1.3.2'
s.summary = 'An auto slide PageViewController.'

s.description = <<-DESC
Expand Down
11 changes: 11 additions & 0 deletions Sources/DLAutoSlidePageViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,17 @@ open class DLAutoSlidePageViewController: UIPageViewController {
return UIPageControl.appearance(whenContainedInInstancesOf: [UIPageViewController.self])
}

// MARK: - Lifecycle

public override func willTransition(to newCollection: UITraitCollection,
with coordinator: UIViewControllerTransitionCoordinator) {
super.willTransition(to: newCollection, with: coordinator)
coordinator.animate(alongsideTransition: nil) { _ in
self.transitionInProgress = false
self.restartTimer()
}
}

// MARK: - Initializers

public convenience init(pages: [UIViewController],
Expand Down

0 comments on commit 8e77664

Please sign in to comment.