Skip to content

Commit

Permalink
[#90] 함수 접근지정자 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
CJiu01 committed Nov 27, 2024
1 parent bc07ecd commit 10890c2
Showing 1 changed file with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,13 @@ class RestaurantTableViewHeader: BaseTableViewHeaderView {
setLayout()
setViewProperties()
}

// MARK: - Functions

func setViewProperties() {

private func setViewProperties() {
titleLabel.do {
$0.font = .subtitle1
$0.text = "기숙사 식당"
}

infoButton.do {
var configuration = UIButton.Configuration.plain()
configuration.baseForegroundColor = EATSSUAsset.Color.GrayScale.gray600.color
Expand All @@ -47,27 +46,30 @@ class RestaurantTableViewHeader: BaseTableViewHeaderView {
configuration.imagePadding = 4.0
$0.configuration = configuration
}

stackView.do {
$0.axis = .horizontal
$0.distribution = .equalSpacing
$0.alignment = .center
}
}

func configureUI() {
private func configureUI() {
contentView.addSubview(stackView)
stackView.addArrangedSubviews([titleLabel,
infoButton])
}

func setLayout() {
private func setLayout() {
stackView.snp.makeConstraints {
$0.horizontalEdges.equalToSuperview()
$0.centerY.equalToSuperview()
}

titleLabel.snp.makeConstraints {
$0.leading.equalToSuperview()
}

infoButton.snp.makeConstraints {
$0.trailing.equalToSuperview()
}
Expand Down

0 comments on commit 10890c2

Please sign in to comment.