-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5d7dd69
commit 0bdfb21
Showing
5 changed files
with
133 additions
and
23 deletions.
There are no files selected for viewing
Binary file modified
BIN
+11.8 KB
(130%)
...TicTacToe.xcworkspace/xcuserdata/jeong-yeonmun.xcuserdatad/UserInterfaceState.xcuserstate
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
ios/tutorials/tutorial1/TicTacToe/Utils/RIBs+Extension.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// | ||
// RIBs+Extension.swift | ||
// TicTacToe | ||
// | ||
// Created by 정연문 on 2022/01/14. | ||
// Copyright © 2022 Uber. All rights reserved. | ||
// | ||
|
||
import RIBs | ||
|
||
extension ViewControllable { | ||
func present(viewControllable: ViewControllable, animated: Bool, completion: (() -> Void)? = nil) { | ||
viewControllable.uiviewController.modalPresentationStyle = .fullScreen | ||
uiviewController.present(viewControllable.uiviewController, animated: animated, completion: completion) | ||
} | ||
|
||
func pushViewController(_ viewControllable: ViewControllable, animated: Bool) { | ||
if let navigationController = uiviewController as? UINavigationController { | ||
navigationController.pushViewController(viewControllable.uiviewController, animated: animated) | ||
} else { | ||
uiviewController.navigationController?.pushViewController(viewControllable.uiviewController, animated: animated) | ||
} | ||
} | ||
} |