Skip to content

Commit

Permalink
[feat] MoveView changeName 추가 (#48)
Browse files Browse the repository at this point in the history
  • Loading branch information
BAEKYUJEONG committed Oct 30, 2024
1 parent 48f411b commit 6537a7e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions PLUV/Component/MoveView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,12 @@ final class MoveView: UIView {
self.layer.shadowOffset = CGSize(width: 0, height: -2)
}

func changeName(left: String, right: String) {
self.backButton.removeTarget(self, action: #selector(clickBackButton), for: .touchUpInside)
self.backButton.setTitle(left, for: .normal)
self.trasferButton.setTitle(right, for: .normal)
}

@objc func clickBackButton() {
if backButton.isEnabled {
view.navigationController?.popViewController(animated: true)
Expand Down

0 comments on commit 6537a7e

Please sign in to comment.