SwipeView icon indicating copy to clipboard operation
SwipeView copied to clipboard

Could not find an overload for 'init' that accepts the supplied arguments

Open datomnurdin opened this issue 10 years ago • 0 comments

I got this error message in PileView.swift.

func animateCardInsertion(swipeView : SwipeView, atPosition position : CGFloat) {
        let prevCount : CGFloat = 0
        let transform = self.transformForPosition(Float(position)) // error message here
        let frame = swipeView.frame

        let verticalOffset : CGFloat = -50
        swipeView.frame = CGRectOffset(frame, 0, verticalOffset)
        swipeView.alpha = 0
        swipeView.opaque = false

        let animationOptions = UIViewAnimationOptions.CurveEaseOut
        let duration : NSTimeInterval = 0.3
        let delay : NSTimeInterval = duration * Double(4 - position) / Double(1.5)
        UIView.animateWithDuration(duration, delay: delay, options: animationOptions, animations: {
            swipeView.frame = frame
            swipeView.transform = transform
            swipeView.alpha = 1

            }, completion: {(finished : Bool) -> () in
                if (finished) {
                    swipeView.opaque = true
                }
            })
    }

datomnurdin avatar Mar 26 '15 17:03 datomnurdin