Skip to content

Commit 19a66c2

Browse files
authored
Merge pull request #171 from boostcampwm-2024/fix/#166-dismiss-bottom-sheet-after-navigation
[๏ฟฝFIX/#166] ํŽธ์ง‘ ํ™”๋ฉด์—์„œ ๋‹ค์Œ ํ™”๋ฉด์œผ๋กœ ์ „ํ™˜๋  ๋•Œ ๋ฐ”ํ…€์‹œํŠธ๋ฅผ ๋‚ด๋ ค์ค๋‹ˆ๋‹ค.
2 parents b047499 + 4234ea5 commit 19a66c2

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

โ€ŽPhotoGether/PresentationLayer/EditPhotoRoomFeature/EditPhotoRoomFeature/Source/EditPhotoRoomGuestViewController.swiftโ€Ž

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,9 @@ public class EditPhotoRoomGuestViewController: BaseViewController, ViewControlle
125125
let component = SharePhotoComponent(imageData: imageData)
126126
let viewModel = SharePhotoViewModel(component: component)
127127
let viewController = SharePhotoViewController(viewModel: viewModel)
128-
129-
self.navigationController?.pushViewController(viewController, animated: true)
128+
bottomSheetViewController.dismiss(animated: true) { [weak self] in
129+
self?.navigationController?.pushViewController(viewController, animated: true)
130+
}
130131
}
131132

132133
private func renderCanvasImageView() -> Data? {

โ€ŽPhotoGether/PresentationLayer/EditPhotoRoomFeature/EditPhotoRoomFeature/Source/EditPhotoRoomHostViewController.swiftโ€Ž

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,9 @@ public class EditPhotoRoomHostViewController: BaseViewController, ViewController
125125
let component = SharePhotoComponent(imageData: imageData)
126126
let viewModel = SharePhotoViewModel(component: component)
127127
let viewController = SharePhotoViewController(viewModel: viewModel)
128-
129-
self.navigationController?.pushViewController(viewController, animated: true)
128+
bottomSheetViewController.dismiss(animated: true) { [weak self] in
129+
self?.navigationController?.pushViewController(viewController, animated: true)
130+
}
130131
}
131132

132133
private func renderCanvasImageView() -> Data? {

0 commit comments

Comments
ย (0)