From 46a9b0bbd0eaf0a96d18888d4b7241128b1f88a4 Mon Sep 17 00:00:00 2001 From: Kwak Seong Joon Date: Fri, 9 Jun 2023 22:04:54 +0900 Subject: [PATCH] =?UTF-8?q?[Chore]=20#61=20-=20=ED=95=84=EC=9A=94=EC=97=86?= =?UTF-8?q?=EB=8A=94=20=EC=BD=94=EB=93=9C=20=EC=82=AD=EC=A0=9C=20=EB=B0=8F?= =?UTF-8?q?=20MARK=20=ED=91=9C=EC=8B=9C=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Cells/TransferAccountsTableViewCell.swift | 7 ++-- SOLSOL/Presentation/Transfer/Data.swift | 38 +------------------ .../Transfer/TransferViewController.swift | 8 +++- .../Transfer/UserCustomViewController.swift | 3 ++ .../Transfer/Views/TransferView.swift | 18 --------- 5 files changed, 15 insertions(+), 59 deletions(-) diff --git a/SOLSOL/Presentation/Transfer/Cells/TransferAccountsTableViewCell.swift b/SOLSOL/Presentation/Transfer/Cells/TransferAccountsTableViewCell.swift index 43f41da..3f93f92 100644 --- a/SOLSOL/Presentation/Transfer/Cells/TransferAccountsTableViewCell.swift +++ b/SOLSOL/Presentation/Transfer/Cells/TransferAccountsTableViewCell.swift @@ -13,6 +13,8 @@ protocol DeleteButtonTapped: AnyObject { final class TransferAccountsTableViewCell: UITableViewCell { + //MARK: - UIComponents + static let identifier = "TransferAccountsTableViewCell" weak var cellDelegate: DeleteButtonTapped? @@ -25,18 +27,17 @@ final class TransferAccountsTableViewCell: UITableViewCell { private let deleteButton = UIButton() private var transferId: Int = 0 - + //MARK: - View Life Cycle + override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) { super .init(style: style, reuseIdentifier: reuseIdentifier) - setStyle() hierarchy() setLayout() } - @available(*,unavailable) required init?(coder: NSCoder) { fatalError("init(coder:) has not been implemented") diff --git a/SOLSOL/Presentation/Transfer/Data.swift b/SOLSOL/Presentation/Transfer/Data.swift index f8417da..a38dd6f 100644 --- a/SOLSOL/Presentation/Transfer/Data.swift +++ b/SOLSOL/Presentation/Transfer/Data.swift @@ -3,8 +3,6 @@ //// SOLSOL //// //// Created by 곽성준 on 2023/05/19. -//// -// import UIKit struct AccountInfo { @@ -14,15 +12,7 @@ struct AccountInfo { } -// -//struct AccountInfoWithDate{ -// let bankImage: UIImage -// let name: String -// let date: String -// let bankAccount: String -// let trashBinImage: UIImage -//} -// + extension AccountInfo{ static func dummy() -> [AccountInfo]{ return[AccountInfo(bankImage: ImageLiterals.Transfer.icBankShinhan, @@ -35,29 +25,3 @@ extension AccountInfo{ )] } } -// -//extension AccountInfoWithDate{ -// static func dummy() -> [AccountInfoWithDate]{ -// return[AccountInfoWithDate(bankImage: ImageLiterals.Transfer.icBankKB, -// name: "곽성준", -// date: "2023.05.22", -// bankAccount: "국민 331314134135", -// trashBinImage: ImageLiterals.Transfer.icDelete), -// AccountInfoWithDate(bankImage: ImageLiterals.Transfer.icBankHanna, -// name: "변희주", -// date: "2023.05.26", -// bankAccount: "하나 111234445", -// trashBinImage: ImageLiterals.Transfer.icDelete), -// AccountInfoWithDate(bankImage: ImageLiterals.Transfer.icBankKakao, -// name: "김민재", -// date: "2023.05.02", -// bankAccount: "카카오 33334030191", -// trashBinImage: ImageLiterals.Transfer.icDelete)] -// } -//} -// -// -// -// -// -// diff --git a/SOLSOL/Presentation/Transfer/TransferViewController.swift b/SOLSOL/Presentation/Transfer/TransferViewController.swift index 5728900..cd4d299 100644 --- a/SOLSOL/Presentation/Transfer/TransferViewController.swift +++ b/SOLSOL/Presentation/Transfer/TransferViewController.swift @@ -9,11 +9,14 @@ import UIKit class TransferViewController: UIViewController { + //MARK: - UIComponents + private lazy var navigationBar = SOLNavigationBar(self, leftItem: .back) let originView = TransferView() - + //MARK: - View Life Cycle + override func viewDidLoad() { super.viewDidLoad() @@ -49,6 +52,9 @@ class TransferViewController: UIViewController { } } + +//MARK: - Extensions + extension TransferViewController: CellAction { func cellTapped(row: Int, section: Int) { diff --git a/SOLSOL/Presentation/Transfer/UserCustomViewController.swift b/SOLSOL/Presentation/Transfer/UserCustomViewController.swift index 1a46ae0..a259362 100644 --- a/SOLSOL/Presentation/Transfer/UserCustomViewController.swift +++ b/SOLSOL/Presentation/Transfer/UserCustomViewController.swift @@ -126,6 +126,9 @@ class UserCustomViewController: UIViewController { } + +//MARK: - Extensions + extension UserCustomViewController: UITableViewDataSource{ func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat { diff --git a/SOLSOL/Presentation/Transfer/Views/TransferView.swift b/SOLSOL/Presentation/Transfer/Views/TransferView.swift index 9b725a1..6c177cf 100644 --- a/SOLSOL/Presentation/Transfer/Views/TransferView.swift +++ b/SOLSOL/Presentation/Transfer/Views/TransferView.swift @@ -12,8 +12,6 @@ import Then class TransferView: UIView { - - //MARK: - UIComponents private let sendToWhoLabel = UILabel() @@ -129,18 +127,15 @@ class TransferView: UIView { userCustomView.do{ $0.view.backgroundColor = .black -// hiddenKeyboard(viewcontroller: userCustomView) } friendGroupView.do{ $0.view.backgroundColor = .red -// hiddenKeyboard(viewcontroller: friendGroupView) } contactsView.do{ $0.view.backgroundColor = .blue -// hiddenKeyboard(viewcontroller: contactsView) } @@ -195,19 +190,6 @@ class TransferView: UIView { } -// func hiddenKeyboard(viewcontroller: UIViewController){ -// -// let tapGestureRecognizer = UITapGestureRecognizer(target: self, action: #selector(didTapView(_:))) -// -// viewcontroller.view.addGestureRecognizer(tapGestureRecognizer) -// -// } - - -// @objc func didTapView(_ sender: UITapGestureRecognizer) { -// searchTextField.endEditing(true) -// } -// @objc func segmentedControlValueChanged(_ sender: UISegmentedControl) { searchTextField.endEditing(true)