-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
41 changed files
with
1,232 additions
and
363 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
45 changes: 45 additions & 0 deletions
45
Hankkijogbo/Hankkijogbo/Global/Components/HankkiLineView/CustomLineView.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,45 @@ | ||
// | ||
// GrayLineView.swift | ||
// Hankkijogbo | ||
// | ||
// Created by Gahyun Kim on 12/22/24. | ||
// | ||
|
||
import UIKit | ||
|
||
import SnapKit | ||
|
||
/// 색상과 높이를 동적으로 설정할 수 있는 Custom Line View | ||
/// default : gray200, height 1 | ||
final class CustomLineView: UIView { | ||
|
||
init(frame: CGRect = .zero, backgroundColor: UIColor = .gray200, height: Int = 1) { | ||
super.init(frame: frame) | ||
|
||
setupStyle(backgroundColor: backgroundColor) | ||
setupLayout(height: height) | ||
} | ||
|
||
required init?(coder: NSCoder) { | ||
super.init(coder: coder) | ||
|
||
setupStyle(backgroundColor: .gray200) | ||
setupLayout(height: 1) | ||
} | ||
|
||
override var intrinsicContentSize: CGSize { | ||
return CGSize(width: UIView.noIntrinsicMetric, height: 1) | ||
} | ||
} | ||
|
||
private extension CustomLineView { | ||
func setupStyle(backgroundColor: UIColor) { | ||
self.backgroundColor = backgroundColor | ||
} | ||
|
||
func setupLayout(height: Int) { | ||
self.snp.makeConstraints { | ||
$0.height.equalTo(height) | ||
} | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// | ||
// URL+.swift | ||
// Hankkijogbo | ||
// | ||
// Created by 심서현 on 12/20/24. | ||
// | ||
|
||
import Foundation | ||
|
||
extension URL { | ||
// URL 의 쿼리 파라미터를 딕셔너리 객체로 변환한다. | ||
func getQueryParameters() -> [String:String] { | ||
var parameters: [String:String] = [:] | ||
let components = URLComponents(url: self, resolvingAgainstBaseURL: false) | ||
components?.queryItems?.forEach { parameters[$0.name] = $0.value } | ||
return parameters | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
...bal/Resources/Assets/Assets.xcassets/Button/btn_like_selected_list.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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"filename" : "btn_heart.svg", | ||
"filename" : "ic_heart.svg", | ||
"idiom" : "universal" | ||
} | ||
], | ||
|
17 changes: 0 additions & 17 deletions
17
...ces/Assets/Assets.xcassets/Button/btn_like_selected_list.imageset/btn_heart.svg
This file was deleted.
Oops, something went wrong.
5 changes: 5 additions & 0 deletions
5
...rces/Assets/Assets.xcassets/Button/btn_like_selected_list.imageset/ic_heart.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.