-
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.
[FEAT] 장소 추천 컬렉션뷰 - 헤더, dim, footerFeature (#23)
- Loading branch information
Showing
11 changed files
with
201 additions
and
15 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
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
6 changes: 6 additions & 0 deletions
6
ACON-iOS/ACON-iOS/Global/Resources/Assets.xcassets/Dim/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,6 @@ | ||
{ | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
ACON-iOS/ACON-iOS/Global/Resources/Assets.xcassets/Dim/dim_gra_2.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,12 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"filename" : "img_dim_1.svg", | ||
"idiom" : "universal" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
.../ACON-iOS/Global/Resources/Assets.xcassets/Dim/dim_gra_2.imageset/img_dim_1.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
54 changes: 54 additions & 0 deletions
54
ACON-iOS/ACON-iOS/Presentation/SpotList/View/Cell/SpotListCollectionViewHeader.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,54 @@ | ||
// | ||
// SpotListCollectionViewHeader.swift | ||
// ACON-iOS | ||
// | ||
// Created by 김유림 on 1/15/25. | ||
// | ||
|
||
import UIKit | ||
|
||
class SpotListCollectionViewHeader: UICollectionReusableView { | ||
|
||
// MARK: - Properties | ||
|
||
static let identifier: String = String(describing: SpotListCollectionViewHeader.self) | ||
|
||
|
||
// MARK: - UI Properties | ||
|
||
private let titleLabel = UILabel() | ||
|
||
|
||
// MARK: - Life Cycle | ||
|
||
override init(frame: CGRect) { | ||
super.init(frame: frame) | ||
|
||
setHierarchy() | ||
setLayout() | ||
setStyle() | ||
} | ||
|
||
required init?(coder: NSCoder) { | ||
fatalError("init(coder:) has not been implemented") | ||
} | ||
|
||
func setHierarchy() { | ||
self.addSubview(titleLabel) | ||
} | ||
|
||
func setLayout() { | ||
titleLabel.snp.makeConstraints { | ||
$0.horizontalEdges.equalToSuperview().inset(20) | ||
$0.top.equalToSuperview() | ||
$0.bottom.equalToSuperview().offset(-12) | ||
} | ||
} | ||
|
||
func setStyle() { | ||
backgroundColor = .clear | ||
let title = StringLiterals.SpotList.headerTitle | ||
titleLabel.setLabel(text: title, style: .h7) | ||
} | ||
|
||
} |
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
Oops, something went wrong.