Skip to content

Commit 3c60f89

Browse files
committed
πŸ› [fix] ν”„λ‘œν•„ μˆ˜μ •μ—μ„œ cancelλ²„νŠΌμ„ 탭해도 μ—…λ‘œλ“œ λ˜λŠ” ν˜„μƒ ν•΄κ²°
1 parent 715766e commit 3c60f89

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

β€ŽFitfty/Projects/Setting/Sources/Profile/ViewController/ProfileSettingViewController.swiftβ€Ž

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public final class ProfileSettingViewController: UIViewController {
4343

4444
private lazy var navigationBarView: BarView = {
4545
let barView = BarView(title: "ν”„λ‘œν•„ μ„€μ •", isChevronButtonHidden: true)
46-
barView.setCancelButtonTarget(target: self, action: #selector(didTapSaveButton(_:)))
46+
barView.setCancelButtonTarget(target: self, action: #selector(didTapCancelButton(_:)))
4747
return barView
4848
}()
4949

@@ -55,7 +55,6 @@ public final class ProfileSettingViewController: UIViewController {
5555

5656
private lazy var profileImageView: UIImageView = {
5757
let imageView = UIImageView()
58-
imageView.image = CommonAsset.Images.profileSample.image
5958
imageView.widthAnchor.constraint(equalToConstant: 104).isActive = true
6059
imageView.heightAnchor.constraint(equalTo: imageView.widthAnchor).isActive = true
6160
imageView.clipsToBounds = true
@@ -155,6 +154,10 @@ private extension ProfileSettingViewController {
155154
coordinator?.showImagePicker(self)
156155
}
157156

157+
@objc func didTapCancelButton(_ sender: UIButton) {
158+
coordinator?.dismiss()
159+
}
160+
158161
}
159162

160163
extension ProfileSettingViewController: UIImagePickerControllerDelegate & UINavigationControllerDelegate {

0 commit comments

Comments
Β (0)