marshroute

Форк
0
28 строк · 871.0 Байт
1
@testable import Marshroute
2

3
enum ModalTransitionsAnimatorSpyPerformCalls {
4
    case called(animationContext: ModalPresentationAnimationContext)
5
}
6

7
enum ModalTransitionsAnimatorSpyUndoCalls {
8
    case called(animationContext: ModalDismissalAnimationContext)
9
}
10

11
final class ModalTransitionsAnimatorSpy: ModalTransitionsAnimator
12
{
13
    // MARK: - TransitionsAnimator
14
    
15
    var animatePerforming: ModalTransitionsAnimatorSpyPerformCalls!
16
    
17
    override func animatePerformingTransition(animationContext context: ModalPresentationAnimationContext)
18
    {
19
        animatePerforming = .called(animationContext: context)
20
    }
21
    
22
    var animateUndoing: ModalTransitionsAnimatorSpyUndoCalls!
23
    
24
    override func animateUndoingTransition(animationContext context: ModalDismissalAnimationContext)
25
    {
26
        animateUndoing = .called(animationContext: context)
27
    }
28
}
29

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.