-
Notifications
You must be signed in to change notification settings - Fork 5
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
195 changed files
with
4,165 additions
and
344 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,11 @@ | ||
issue number : [#02](../issues/02) | ||
issue number : [#](../issues/) | ||
close # | ||
|
||
### ์์ ์ฌํญ | ||
|
||
๋ธ๋ผ๋ธ๋ผ | ||
|
||
### ์ฐธ๊ณ ์๋ฃ | ||
|
||
[์ฐธ๊ณ ์๋ฃ1]() | ||
[์ฐธ๊ณ ์๋ฃ2]() | ||
[์ฐธ๊ณ ์๋ฃ1]() | ||
|
||
### ์ฒดํฌ๋ฆฌ์คํธ | ||
|
||
- [ ] Merge ํ๋ ๋ธ๋์น๊ฐ ์ฌ๋ฐ๋ฅธ๊ฐ? | ||
- [ ] ์ฝ๋ฉ์ปจ๋ฒค์ ์ ์ค์ํ๋๊ฐ? | ||
- [ ] PR๊ณผ ๊ด๋ จ์๋ ๋ณ๊ฒฝ์ฌํญ์ด ์๋๊ฐ? | ||
- [ ] ๋ด ์ฝ๋์ ๋ํ ์๊ธฐ ๊ฒํ ๊ฐ ๋์๋๊ฐ? | ||
- [ ] ๋ณ๊ฒฝ์ฌํญ์ด ํจ๊ณผ์ ์ด๊ฑฐ๋ ๋์์ด ์๋ํ๋ค๋ ๊ฒ์ ๋ณด์ฆํ๋ ํ ์คํธ๋ฅผ ์ถ๊ฐํ์๋๊ฐ? | ||
- [ ] ์๋ก์ด ํ ์คํธ์ ๊ธฐ์กด์ ํ ์คํธ๊ฐ ๋ณ๊ฒฝ์ฌํญ์ ๋ํด ๋ง์กฑํ๋๊ฐ? |
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 |
---|---|---|
|
@@ -15,7 +15,7 @@ Pods/ | |
.DS_Store | ||
.AppleDouble | ||
.LSOverride | ||
|
||
GoogleService-Info.plist | ||
# Icon must end with two \r | ||
Icon | ||
|
||
|
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
23 changes: 23 additions & 0 deletions
23
Escaper/Escaper/Common/Extensions/UISearchBar+SetTextFieldColor.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,23 @@ | ||
// | ||
// UISearchBar+SetTextFieldColor.swift | ||
// Escaper | ||
// | ||
// Created by TakHyun Jung on 2021/11/13. | ||
// | ||
|
||
import UIKit | ||
|
||
extension UISearchBar { | ||
func setTextFieldColor(color: UIColor?) { | ||
guard let textField = self.value(forKey: "searchField") as? UITextField else { return } | ||
switch self.searchBarStyle { | ||
case .minimal: | ||
textField.layer.backgroundColor = color?.cgColor | ||
textField.layer.cornerRadius = 6 | ||
case .prominent, .default: | ||
textField.backgroundColor = color | ||
@unknown default: | ||
break | ||
} | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
Escaper/Escaper/Common/Extensions/UIView+RoundCorners.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,17 @@ | ||
// | ||
// UIView+ScaledSize.swift | ||
// Escaper | ||
// | ||
// Created by TakHyun Jung on 2021/11/13. | ||
// | ||
|
||
import UIKit | ||
|
||
extension UIView { | ||
func roundCorners(corners: UIRectCorner, radius: CGFloat) { | ||
let path = UIBezierPath(roundedRect: self.bounds, byRoundingCorners: corners, cornerRadii: CGSize(width: radius, height: radius)) | ||
let mask = CAShapeLayer() | ||
mask.path = path.cgPath | ||
self.layer.mask = mask | ||
} | ||
} |
This file was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,109 @@ | ||
// | ||
// DesignSystem.swift | ||
// Escaper | ||
// | ||
// Created by ์ต์์ on 2021/11/05. | ||
// | ||
|
||
import UIKit | ||
|
||
typealias EDSColor = EDSKit.Color | ||
typealias EDSLabel = EDSKit.Label | ||
typealias EDSImage = EDSKit.Image | ||
|
||
enum EDSKit { | ||
enum Label { | ||
static func h01B(text: String = "", color: Color) -> UILabel { | ||
let label = Label.makeLabel(text: text, color: color) | ||
label.font = UIFont.systemFont(ofSize: 24, weight: .bold) | ||
return label | ||
} | ||
|
||
static func h02B(text: String = "", color: Color) -> UILabel { | ||
let label = Label.makeLabel(text: text, color: color) | ||
label.font = UIFont.systemFont(ofSize: 22, weight: .bold) | ||
return label | ||
} | ||
|
||
static func h03B(text: String = "", color: Color) -> UILabel { | ||
let label = Label.makeLabel(text: text, color: color) | ||
label.font = UIFont.systemFont(ofSize: 20, weight: .bold) | ||
return label | ||
} | ||
|
||
static func b01B(text: String = "", color: Color) -> UILabel { | ||
let label = Label.makeLabel(text: text, color: color) | ||
label.font = UIFont.systemFont(ofSize: 14, weight: .bold) | ||
return label | ||
} | ||
|
||
static func b02B(text: String = "", color: Color) -> UILabel { | ||
let label = Label.makeLabel(text: text, color: color) | ||
label.font = UIFont.systemFont(ofSize: 12, weight: .bold) | ||
return label | ||
} | ||
|
||
static func b03B(text: String = "", color: Color) -> UILabel { | ||
let label = Label.makeLabel(text: text, color: color) | ||
label.font = UIFont.systemFont(ofSize: 10, weight: .bold) | ||
return label | ||
} | ||
|
||
static func b01R(text: String = "", color: Color) -> UILabel { | ||
let label = Label.makeLabel(text: text, color: color) | ||
label.font = UIFont.systemFont(ofSize: 14, weight: .regular) | ||
return label | ||
} | ||
|
||
static func b02R(text: String = "", color: Color) -> UILabel { | ||
let label = Label.makeLabel(text: text, color: color) | ||
label.font = UIFont.systemFont(ofSize: 12, weight: .regular) | ||
return label | ||
} | ||
|
||
static func b03R(text: String = "", color: Color) -> UILabel { | ||
let label = Label.makeLabel(text: text, color: color) | ||
label.font = UIFont.systemFont(ofSize: 10, weight: .regular) | ||
return label | ||
} | ||
} | ||
|
||
enum Color { | ||
case bloodyBlack | ||
case bloodyBurgundy | ||
case bloodyDarkBurgundy | ||
case bloodyRed | ||
case charcoal | ||
case gloomyPink | ||
case gloomyPurple | ||
case gloomyRed | ||
case gloomyBrown | ||
case pumpkin | ||
case skullLightWhite | ||
case skullWhite | ||
case skullGrey | ||
|
||
var value: UIColor? { | ||
return UIColor(named: String(describing: self)) | ||
} | ||
} | ||
|
||
enum Image { | ||
var value: UIImage? { | ||
return UIImage(named: String(describing: self)) | ||
} | ||
|
||
case chevronDown | ||
case recordCard | ||
case plus | ||
} | ||
} | ||
|
||
private extension EDSLabel { | ||
static func makeLabel(text: String, color: EDSColor) -> UILabel { | ||
let label = UILabel() | ||
label.text = text | ||
label.textColor = color.value | ||
return label | ||
} | ||
} |
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,14 @@ | ||
// | ||
// Helper.swift | ||
// Escaper | ||
// | ||
// Created by ์ต์์ on 2021/11/11. | ||
// | ||
|
||
import Foundation | ||
|
||
enum Helper { | ||
static func parseUsername(email: String) -> String? { | ||
return email.components(separatedBy: "@").first | ||
} | ||
} |
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,16 @@ | ||
// | ||
// UtilityImage.swift | ||
// Escaper | ||
// | ||
// Created by shinheeRo on 2021/11/09. | ||
// | ||
|
||
import Foundation | ||
|
||
enum UtilityImage: String { | ||
var name: String { | ||
return self.rawValue | ||
} | ||
case chevronDown | ||
case recordCard | ||
} |
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,14 @@ | ||
// | ||
// Helper.swift | ||
// Escaper | ||
// | ||
// Created by ์ต์์ on 2021/11/10. | ||
// | ||
|
||
import Foundation | ||
|
||
enum Helper { | ||
static func parseUsername(email: String) -> String? { | ||
return email.components(separatedBy: "@").first | ||
} | ||
} |
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.