@@ -18,14 +18,16 @@ final class ActionsSectionBuilder: SectionBuilder {
1818 let defaultAction = getAction ( style: . secondary)
1919 let destructiveAction = getAction ( style: . destructive)
2020 let openScreenAction = getOpenScreenAction ( )
21+ let pushScreenAction = getPushScreenAction ( )
2122
2223 let actionList = configureActionList ( )
2324
2425 blocks = [
2526 . actionList( model: actionList) ,
2627 . action( model: defaultAction) ,
2728 . action( model: destructiveAction) ,
28- . action( model: openScreenAction)
29+ . action( model: openScreenAction) ,
30+ . action( model: pushScreenAction)
2931 ]
3032
3133 return . init( title: L10n . Actions. header, blocks: blocks)
@@ -51,7 +53,15 @@ private extension ActionsSectionBuilder {
5153 func getOpenScreenAction( ) -> DebugScreenAction {
5254 let action : DebugScreenAction = . init( title: L10n . Actions. openScreenTitle) {
5355 let view = DestinationViewController ( )
54- DebugScreenPresenterService . shared. showCustomScreen ( view)
56+ DebugScreenPresenterService . shared. presentCustomScreen ( view)
57+ }
58+ return action
59+ }
60+
61+ func getPushScreenAction( ) -> DebugScreenAction {
62+ let action : DebugScreenAction = . init( title: L10n . Actions. pushScreenTitle) {
63+ let view = DestinationViewController ( )
64+ DebugScreenPresenterService . shared. pushCustomScreen ( view)
5565 }
5666 return action
5767 }
0 commit comments