File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Fitfty/Projects/Setting/Sources/Profile/ViewController Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff 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
160163extension ProfileSettingViewController : UIImagePickerControllerDelegate & UINavigationControllerDelegate {
You canβt perform that action at this time.
0 commit comments