diff --git a/CheoMooRac/CheoMooRac/Sources/Cells/MyCardTableViewCell.swift b/CheoMooRac/CheoMooRac/Sources/Cells/MyCardTableViewCell.swift index bae00a7..3b1a61e 100644 --- a/CheoMooRac/CheoMooRac/Sources/Cells/MyCardTableViewCell.swift +++ b/CheoMooRac/CheoMooRac/Sources/Cells/MyCardTableViewCell.swift @@ -16,12 +16,12 @@ class MyCardTableViewCell: UITableViewCell, Reusable { private let nameLabel = UILabel().then { $0.text = "김윤서" - $0.font = .boldSystemFont(ofSize: 15) + $0.font = .boldSystemFont(ofSize: 18) } private let discriptionLabel = UILabel().then { $0.text = "내 카드" - $0.font = .systemFont(ofSize: 10) + $0.font = .systemFont(ofSize: 13) $0.textColor = .lightGray } @@ -53,12 +53,12 @@ class MyCardTableViewCell: UITableViewCell, Reusable { private func setConstraints() { profileImageView.snp.makeConstraints { - $0.width.height.equalTo(40) - $0.top.equalToSuperview().offset(20) + $0.width.height.equalTo(50) + $0.centerY.equalToSuperview() $0.leading.equalToSuperview().offset(20) } - profileImageView.layer.cornerRadius = 20 + profileImageView.layer.cornerRadius = 25 vStackView.snp.makeConstraints { $0.centerY.equalToSuperview() diff --git a/CheoMooRac/CheoMooRac/Sources/Cells/TextFieldTableViewCell.swift b/CheoMooRac/CheoMooRac/Sources/Cells/TextFieldTableViewCell.swift index fb31fac..94cb565 100644 --- a/CheoMooRac/CheoMooRac/Sources/Cells/TextFieldTableViewCell.swift +++ b/CheoMooRac/CheoMooRac/Sources/Cells/TextFieldTableViewCell.swift @@ -11,7 +11,7 @@ class TextFieldTableViewCell: UITableViewCell,Reusable { private let textField = UITextField().then { $0.borderStyle = .none - $0.textColor = .systemRed + $0.textColor = .black } diff --git a/CheoMooRac/CheoMooRac/Sources/ViewControllers/CreateViewController.swift b/CheoMooRac/CheoMooRac/Sources/ViewControllers/CreateViewController.swift index 8e99b4b..6fb61f2 100644 --- a/CheoMooRac/CheoMooRac/Sources/ViewControllers/CreateViewController.swift +++ b/CheoMooRac/CheoMooRac/Sources/ViewControllers/CreateViewController.swift @@ -7,6 +7,23 @@ import UIKit +enum Placeholder: Int { + case familyName = 0 + case name + case number + + var text: String { + switch self { + case .familyName: + return "성" + case .name: + return "이름" + case .number: + return "전화번호" + } + } +} + class CreateViewController: UIViewController { private let tableView = UITableView().then { @@ -96,7 +113,7 @@ extension CreateViewController: UITableViewDataSource { switch indexPath.section { case 0: let cell = tableView.dequeueReusableCell(indexPath: indexPath) as TextFieldTableViewCell - cell.placeholder = "성" + cell.placeholder = Placeholder.init(rawValue: indexPath.row)?.text cell.delegate = self return cell default: diff --git a/CheoMooRac/CheoMooRac/Sources/ViewControllers/ReadViewController.swift b/CheoMooRac/CheoMooRac/Sources/ViewControllers/ReadViewController.swift new file mode 100644 index 0000000..ed42a28 --- /dev/null +++ b/CheoMooRac/CheoMooRac/Sources/ViewControllers/ReadViewController.swift @@ -0,0 +1,17 @@ +// +// ReadViewController.swift +// CheoMooRac +// +// Created by 김윤서 on 2021/09/15. +// + +import UIKit + +class ReadViewController: UIViewController { + + override func viewDidLoad() { + super.viewDidLoad() + + } + +}