Skip to content

Commit

Permalink
[Fix] dormBtn 속성 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
eung7 committed Jan 14, 2023
1 parent 4711f29 commit e30d13f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@ final class PostListViewController: BaseViewController {
private let dormBtn: UIButton = {
var container = AttributeContainer()
container.font = .init(name: MyFonts.bold.rawValue, size: 20)
container.strokeColor = .black

var config = UIButton.Configuration.plain()
config.imagePadding = 16
config.imagePlacement = .trailing
config.image = #imageLiteral(resourceName: "downarrow")
config.attributedTitle = AttributedString("인천대 3기숙사", attributes: container)
config.baseForegroundColor = .black

let btn = UIButton(configuration: config)

Expand Down Expand Up @@ -76,8 +76,8 @@ final class PostListViewController: BaseViewController {

override func setupLayouts() {
[
floatyBtn,
postListCV
postListCV,
floatyBtn
].forEach {
view.addSubview($0)
}
Expand All @@ -99,7 +99,7 @@ final class PostListViewController: BaseViewController {
private func getLayout() -> UICollectionViewCompositionalLayout {
UICollectionViewCompositionalLayout { section, _ in
switch section {
case 0:
case Section.popular.rawValue:
return PostUtils.popularPostSection()
default:
return PostUtils.postSection()
Expand Down

0 comments on commit e30d13f

Please sign in to comment.