                     touchStartPoint = touchPoint
                     touchStartLayerPosition = cardLayer.position
                     CATransaction.begin()  // do not animate z-position change
-                    CATransaction.setValue(kCFBooleanTrue, forKey: kCATransactionDisableActions)
+                    CATransaction.setDisableActions(true)
                     cardLayer.zPosition = topZPosition++
                     draggingFan = solitaire.fanBeginningWithCard(card)
                     if let draggingFan = draggingFan {

    
    func moveCardLayerToTop(cardLayer : CardLayer) {
        CATransaction.begin()  // do not animate z-position change
        CATransaction.setValue(kCFBooleanTrue, forKey: kCATransactionDisableActions)
        cardLayer.zPosition = topZPosition++
        CATransaction.commit()
    }

    func dragCardsToPosition(position : CGPoint, animate : Bool) {
        if !animate {
            CATransaction.begin()
            CATransaction.setDisableActions(true)
        }
        draggingCardLayer!.position = position
        if let draggingFan = draggingFan {
