-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: ✨ IssueTableFooterView 구현 (#27)
- Loading branch information
Showing
1 changed file
with
41 additions
and
0 deletions.
There are no files selected for viewing
41 changes: 41 additions & 0 deletions
41
iOS/issue-tracker/issue-tracker/Controller/IssueTableFooterView.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,41 @@ | ||
// | ||
// IssueTableFooterView.swift | ||
// issue-tracker | ||
// | ||
// Created by 양준혁 on 2021/06/10. | ||
// | ||
|
||
import UIKit | ||
import SnapKit | ||
|
||
class IssueTableFooterView: UIView { | ||
|
||
var label: UILabel = { | ||
var label = UILabel() | ||
label.text = "아래로 당기면 검색바가 보여요!👀" | ||
label.textColor = .lightGray | ||
return label | ||
}() | ||
|
||
override init(frame: CGRect) { | ||
super.init(frame: frame) | ||
backgroundColor = #colorLiteral(red: 0.9489405751, green: 0.9490727782, blue: 0.9685038924, alpha: 1) | ||
addSubview(label) | ||
setAutolayout() | ||
} | ||
|
||
required init?(coder: NSCoder) { | ||
super.init(coder: coder) | ||
backgroundColor = #colorLiteral(red: 0.9489405751, green: 0.9490727782, blue: 0.9685038924, alpha: 1) | ||
addSubview(label) | ||
setAutolayout() | ||
} | ||
|
||
func setAutolayout() { | ||
label.snp.makeConstraints { label in | ||
label.centerX.equalToSuperview() | ||
label.top.equalTo(39) | ||
} | ||
} | ||
|
||
} |