Skip to content

Commit

Permalink
[iOS] feat: 캡처 버튼 버그 수정, 편집화면 버그 수정
Browse files Browse the repository at this point in the history
- 캡처 버튼이 사각형으로 변하는 버그
- 편집화면에서 로딩중이라고 뜨는 버그
  • Loading branch information
jeongju9216 committed Dec 7, 2023
1 parent 6322e4f commit 85c8db8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
10 changes: 3 additions & 7 deletions iOS/moti/moti/Design/Sources/Design/CaptureButton.swift
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ public final class CaptureButton: UIButton {

setupUI()
addTarget()

let size = min(Self.defaultSize, Self.defaultSize)
applyCorenrRadius(size: size)
}

required init?(coder: NSCoder) {
Expand All @@ -36,13 +39,6 @@ public final class CaptureButton: UIButton {
addTarget(self, action: #selector(captureButtonTouchUpOutside), for: .touchUpOutside)
}

public override func layoutSubviews() {
super.layoutSubviews()

let size = min(frame.width, frame.height)
applyCorenrRadius(size: size)
}

// MARK: - Setup
private func setupUI() {
backgroundColor = .motiBackground
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -178,8 +178,6 @@ extension EditAchievementViewController: UIPickerViewDataSource {
private extension EditAchievementViewController {
func setupNavigationBar() {
navigationItem.rightBarButtonItems = [doneButton]
doneButton.isEnabled = false
doneButton.title = "로딩 중"
}

func showDoneButton() {
Expand Down Expand Up @@ -276,7 +274,8 @@ private extension EditAchievementViewController {
guard let self else { return }
print("Save Image: \(state)")
switch state {
case .none, .loading:
case .none: break
case .loading:
doneButton.isEnabled = false
doneButton.title = "로딩 중"
case .finish:
Expand Down

0 comments on commit 85c8db8

Please sign in to comment.