diff --git a/XCoordinator.podspec b/XCoordinator.podspec index ddc520f3..c82627c3 100644 --- a/XCoordinator.podspec +++ b/XCoordinator.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |spec| spec.name = 'XCoordinator' - spec.version = '1.2.3' + spec.version = '1.2.4' spec.license = { :type => 'MIT' } spec.homepage = 'https://github.com/quickbirdstudios/XCoordinator' spec.authors = { 'Stefan Kofler' => 'stefan.kofler@quickbirdstudios.com', 'Paul Kraft' => 'pauljohannes.kraft@quickbirdstudios.com' } diff --git a/XCoordinator/Classes/PageCoordinator.swift b/XCoordinator/Classes/PageCoordinator.swift index 74bbcb39..6b54b4ef 100644 --- a/XCoordinator/Classes/PageCoordinator.swift +++ b/XCoordinator/Classes/PageCoordinator.swift @@ -29,7 +29,7 @@ open class PageCoordinator: BaseCoordinator Transition { + return Transition(presentables: pages, animation: nil) { _, performer, completion in + CATransaction.begin() + CATransaction.setCompletionBlock { + pages.forEach { $0.presented(from: performer) } + completion?() + } + CATransaction.commit() + } + } }