Skip to content

Commit

Permalink
🔨[FIX]: #276 - 타 유저 마이페이지 뒤로가기 버튼 생성 및 modalstyle변경
Browse files Browse the repository at this point in the history
  • Loading branch information
parkikbum committed Jul 19, 2022
1 parent 8d98c54 commit 648c698
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ChaRo-iOS/ChaRo-iOS/Resource/Literals/ImageLiterals.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ enum ImageLiterals {

static var icBack: UIImage { .load(name: "backIcon") }
static var icBackGray: UIImage { .load(name: "icGrayBackButton") }
static var icBackWhite: UIImage { .load(name: "backIconWhite") }
static var icBackWhite: UIImage { .load(name: "BackIconWhite") }
static var icBlueCheck: UIImage { .load(name: "blueCheck")}

static var icCamera: UIImage { .load(name: "icCamera") }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,12 @@ class OtherMyPageVC: UIViewController {
}

@objc private func backButtonClicked(_ sender: UIButton) {
self.navigationController?.popViewController(animated: true)
if self.navigationController != nil {
self.navigationController?.popViewController(animated: true)
} else {
self.dismiss(animated: true, completion: nil)
}

}

@objc private func followerButtonClicked(_ sender: UIButton) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ class PostLikeListVC: UIViewController {
.bind(onNext: { [weak self] follow in
let otherVC = OtherMyPageVC()
otherVC.setOtherUserID(userID: follow.userEmail)
otherVC.modalPresentationStyle = .overFullScreen
self?.present(otherVC, animated: true)
}).disposed(by: disposeBag)

Expand Down

0 comments on commit 648c698

Please sign in to comment.