-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'feat/Settings' into Develop
- Loading branch information
Showing
11 changed files
with
175 additions
and
91 deletions.
There are no files selected for viewing
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
21 changes: 21 additions & 0 deletions
21
Briefing/Resources/Assets.xcassets/details_black.imageset/Contents.json
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,21 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"filename" : "details_black.svg", | ||
"idiom" : "universal", | ||
"scale" : "1x" | ||
}, | ||
{ | ||
"idiom" : "universal", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"idiom" : "universal", | ||
"scale" : "3x" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
3 changes: 3 additions & 0 deletions
3
Briefing/Resources/Assets.xcassets/details_black.imageset/details_black.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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
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
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
58 changes: 58 additions & 0 deletions
58
Briefing/Scenes/SettingScenes/SettingTableViewSectionHeaderView.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,58 @@ | ||
// | ||
// SettingTableViewHeaderView.swift | ||
// Briefing | ||
// | ||
// Created by 이전희 on 11/7/23. | ||
// | ||
|
||
import UIKit | ||
|
||
final class SettingTableViewSectionHeaderView: UIView { | ||
var title: String | ||
|
||
private var mainView: UIView = { | ||
let view = UIView() | ||
view.backgroundColor = .clear | ||
return view | ||
}() | ||
|
||
var titleLabel: UILabel = { | ||
let label = UILabel() | ||
label.font = .productSans(size: 18) | ||
label.textColor = .black | ||
return label | ||
}() | ||
|
||
init(title: String) { | ||
self.title = title | ||
super.init(frame: .zero) | ||
configure() | ||
addSubviews() | ||
makeConstraints() | ||
} | ||
|
||
required init?(coder: NSCoder) { | ||
fatalError("init(coder:) has not been implemented") | ||
} | ||
|
||
private func configure() { | ||
self.titleLabel.text = title | ||
} | ||
|
||
private func addSubviews() { | ||
addSubviews(mainView) | ||
mainView.addSubviews(titleLabel) | ||
} | ||
|
||
private func makeConstraints() { | ||
mainView.snp.makeConstraints{ make in | ||
make.edges.equalToSuperview() | ||
} | ||
|
||
titleLabel.snp.makeConstraints { make in | ||
make.leading.trailing.equalToSuperview().inset(30) | ||
make.bottom.equalToSuperview().inset(6) | ||
} | ||
} | ||
|
||
} |
Oops, something went wrong.