Skip to content

Commit

Permalink
[#2] font 사이즈 변경, 컬러 설정
Browse files Browse the repository at this point in the history
  • Loading branch information
ezidayzi committed Sep 16, 2021
1 parent 6edd2cc commit b3cf690
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 7 deletions.
10 changes: 5 additions & 5 deletions CheoMooRac/CheoMooRac/Sources/Cells/MyCardTableViewCell.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down Expand Up @@ -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()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class TextFieldTableViewCell: UITableViewCell,Reusable {

private let textField = UITextField().then {
$0.borderStyle = .none
$0.textColor = .systemRed
$0.textColor = .black
}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
//
// ReadViewController.swift
// CheoMooRac
//
// Created by 김윤서 on 2021/09/15.
//

import UIKit

class ReadViewController: UIViewController {

override func viewDidLoad() {
super.viewDidLoad()

}

}

0 comments on commit b3cf690

Please sign in to comment.