/
sberpay
/
AgeGate-iOS
Обзор
Документация
Войти
/
sberpay
/
AgeGate-iOS
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
develop
AgeGateSDK/Navigation/Transition/CoverWrappingInNavigationTransition.swift
36 строк
1 KB
SergeyGladkiy
[0.2.0] БДСЧ сценарий
30 июл 2026, 21:57
30 июл 2026, 21:57
cbcdfcb
Код
Авторство
О чём код?
// // CoverWrappingInNavigationTransition.swift // Crypto // // Created by Ипатов Александр Станиславович on 16.10.2023. // import UIKit /// Первый экран сценария: заворачиваем в контейнер и показываем шторкой. final class AGTWrapInContainerTransition: AGTTransition { private weak var base: UIViewController? private let windowManager: AGTWindowManager private let animated: Bool private let containerReady: (@MainActor (AGTContentNC) -> Void)? init(windowManager: AGTWindowManager, on viewController: UIViewController?, animated: Bool = true, containerReady: (@MainActor (AGTContentNC) -> Void)? = nil) { self.windowManager = windowManager self.base = viewController self.animated = animated self.containerReady = containerReady } @MainActor func performTransition(for viewController: UIViewController) { guard let content = viewController as? AGTContentVC else { return } let container = AGTContentNC(rootViewController: content) containerReady?(container) windowManager.present(container, over: base, animated: animated) } }