Skip to content

Commit

Permalink
Merge pull request #4 from AlbGarciam/release/0.1.0
Browse files Browse the repository at this point in the history
Release/0.1.0
  • Loading branch information
AlbGarciam authored Jun 13, 2019
2 parents 51bd903 + ccf6b90 commit 0fad48d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CardStyleTransition.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

Pod::Spec.new do |s|
s.name = 'CardStyleTransition'
s.version = '0.1.0'
s.version = '0.1.1'
s.summary = 'UI component which presents a view controller as a Card'

# This description is used to generate tags and improve search results.
Expand Down
2 changes: 1 addition & 1 deletion CardTransition/Classes/CardTransition.swift
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,11 @@ public class CardTransition: BaseCustomTransition {

override public func dismissing(using transitionContext: UIViewControllerContextTransitioning) {
let (fromVC, toVC) = transitionContext.getControllers()
let finalFrame = transitionContext.finalFrame(for: toVC)

toVC.view.isUserInteractionEnabled = true

let superview = fromVC.view.superview ?? fromVC.view
let finalFrame = superview?.frame ?? .zero

UIView.animate(withDuration: transitionDuration(using: transitionContext), delay: 0, options: .curveEaseInOut, animations: {
superview?.frame = finalFrame.offsetBy(dx: 0, dy: finalFrame.height+20)
Expand Down

0 comments on commit 0fad48d

Please sign in to comment.