Skip to content

Commit

Permalink
[Chore] #61 - 필요없는 코드 삭제 및 MARK 표시 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
sjk4618 committed Jun 9, 2023
1 parent 9dae3e8 commit 46a9b0b
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 59 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ protocol DeleteButtonTapped: AnyObject {

final class TransferAccountsTableViewCell: UITableViewCell {

//MARK: - UIComponents

static let identifier = "TransferAccountsTableViewCell"

weak var cellDelegate: DeleteButtonTapped?
Expand All @@ -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")
Expand Down
38 changes: 1 addition & 37 deletions SOLSOL/Presentation/Transfer/Data.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
//// SOLSOL
////
//// Created by 곽성준 on 2023/05/19.
////
//
import UIKit

struct AccountInfo {
Expand All @@ -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,
Expand All @@ -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)]
// }
//}
//
//
//
//
//
//
8 changes: 7 additions & 1 deletion SOLSOL/Presentation/Transfer/TransferViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down Expand Up @@ -49,6 +52,9 @@ class TransferViewController: UIViewController {

}
}

//MARK: - Extensions

extension TransferViewController: CellAction {

func cellTapped(row: Int, section: Int) {
Expand Down
3 changes: 3 additions & 0 deletions SOLSOL/Presentation/Transfer/UserCustomViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,9 @@ class UserCustomViewController: UIViewController {


}

//MARK: - Extensions

extension UserCustomViewController: UITableViewDataSource{

func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat {
Expand Down
18 changes: 0 additions & 18 deletions SOLSOL/Presentation/Transfer/Views/TransferView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ import Then

class TransferView: UIView {



//MARK: - UIComponents

private let sendToWhoLabel = UILabel()
Expand Down Expand Up @@ -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)

}

Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 46a9b0b

Please sign in to comment.