-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feat [#58] 홈 + 게시글 뷰 액션 추가
- Loading branch information
Showing
13 changed files
with
554 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
82 changes: 82 additions & 0 deletions
82
DontBe-iOS/DontBe-iOS/Presentation/Home/ViewControllers/DeletePopupViewController.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
// | ||
// DeletePopupViewController.swift | ||
// DontBe-iOS | ||
// | ||
// Created by yeonsu on 1/15/24. | ||
// | ||
|
||
import UIKit | ||
|
||
final class DeletePopupViewController: UIViewController { | ||
|
||
// MARK: - Properties | ||
|
||
// MARK: - UI Components | ||
|
||
private let deletePostPopupView = DontBePopupView(popupTitle: StringLiterals.Home.deletePopupTitleLabel, | ||
popupContent: StringLiterals.Home.deletePopupContentLabel, | ||
leftButtonTitle: StringLiterals.Home.deletePopupLefteftButtonTitle, | ||
rightButtonTitle: StringLiterals.Home.deletePopupRightButtonTitle) | ||
|
||
private let myView = PostPopupView() | ||
|
||
// MARK: - Life Cycles | ||
|
||
override func loadView() { | ||
super.loadView() | ||
|
||
view = myView | ||
} | ||
|
||
override func viewDidLoad() { | ||
super.viewDidLoad() | ||
|
||
getAPI() | ||
setUI() | ||
setHierarchy() | ||
setLayout() | ||
setDelegate() | ||
} | ||
} | ||
|
||
// MARK: - Extensions | ||
|
||
extension DeletePopupViewController { | ||
private func setUI() { | ||
|
||
} | ||
|
||
private func setHierarchy() { | ||
view.addSubviews(deletePostPopupView) | ||
} | ||
|
||
private func setLayout() { | ||
deletePostPopupView.snp.makeConstraints { | ||
$0.edges.equalToSuperview() | ||
} | ||
} | ||
|
||
private func setDelegate() { | ||
deletePostPopupView.delegate = self | ||
} | ||
} | ||
|
||
// MARK: - Network | ||
|
||
extension DeletePopupViewController { | ||
private func getAPI() { | ||
|
||
} | ||
} | ||
|
||
extension DeletePopupViewController: DontBePopupDelegate { | ||
func cancleButtonTapped() { | ||
self.dismiss(animated: false) | ||
} | ||
|
||
func confirmButtonTapped() { | ||
self.dismiss(animated: false) | ||
// ✅ 투명도 주기 버튼 클릭 시 액션 추가 | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.