Skip to content

Commit

Permalink
Merge pull request #19 from cradnovich/master
Browse files Browse the repository at this point in the history
Import UIKit to fix build error with Swift Package Manager
  • Loading branch information
chelemen-razvan authored Feb 8, 2022
2 parents 24666b7 + 5953dc2 commit a220fc4
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Sources/AppstoreTransition/CardDetailViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ public final class CardDismissHandler: NSObject {
// This handles both screen edge and dragdown pan. As screen edge pan is a subclass of pan gesture, this input param works.
@objc func handleDismissalPan(gesture: UIPanGestureRecognizer) {

let velocity = gesture.velocity(in: source.view)
// let velocity = gesture.velocity(in: source.view)
//if velocity.y > 0 { return }

let isScreenEdgePan = gesture.isKind(of: DismissalScreenEdgePanGesture.self)
Expand Down
2 changes: 1 addition & 1 deletion Sources/AppstoreTransition/DismissCardAnimator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ final class DismissCardAnimator: NSObject, UIViewControllerAnimatedTransitioning
let ctx = transitionContext
let container = ctx.containerView

var toViewController: CardsViewController! = ctx.viewController(forKey: .to)?.cardsViewController()
let toViewController: CardsViewController! = ctx.viewController(forKey: .to)?.cardsViewController()

let screens: (cardDetail: CardDetailViewController, home: CardsViewController) = (
ctx.viewController(forKey: .from)! as! CardDetailViewController,
Expand Down
4 changes: 1 addition & 3 deletions Sources/AppstoreTransition/PresentCardAnimator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ final class PresentCardTransitionDriver {
init(params: PresentCardAnimator.Params, transitionContext: UIViewControllerContextTransitioning, baseAnimator: UIViewPropertyAnimator) {
let ctx = transitionContext
let container = ctx.containerView
var fromViewController: CardsViewController! = ctx.viewController(forKey: .from)?.cardsViewController()
let fromViewController: CardsViewController! = ctx.viewController(forKey: .from)?.cardsViewController()

let screens: (home: CardsViewController, cardDetail: CardDetailViewController) = (
fromViewController,
Expand Down Expand Up @@ -139,8 +139,6 @@ final class PresentCardTransitionDriver {
animatedContainerView.addSubview(cardDetailView)
cardDetailView.translatesAutoresizingMaskIntoConstraints = false

let weirdCardToAnimatedContainerTopAnchor: NSLayoutConstraint

do /* Pin top (or center Y) and center X of the card, in animated container view */ {
let verticalAnchor: NSLayoutConstraint = {
switch params.settings.cardVerticalExpandingStyle {
Expand Down
2 changes: 1 addition & 1 deletion Sources/AppstoreTransition/UIView+Extension.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// Copyright © 2019 appssemble. All rights reserved.
//

import Foundation
import UIKit

extension UIView {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// Copyright © 2019 appssemble. All rights reserved.
//

import Foundation
import UIKit

public extension UIViewController {

Expand Down

0 comments on commit a220fc4

Please sign in to comment.