Skip to content

Commit 289238f

Browse files
authored
Merge pull request #95 from EAT-SSU/feat/#94
[#94] ν‘Έμ‹œ μ•Œλ¦Ό μˆ˜μ‹  λ™μ˜λ₯Ό ν–ˆμ„ μ‹œ ν† μŠ€νŠΈ λ©”μ‹œμ§€λ‘œ ν”Όλ“œλ°±ν•©λ‹ˆλ‹€.
2 parents 1b027e0 + 90c9f99 commit 289238f

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed

β€ŽEATSSU_MVC/EATSSU_MVC/Sources/Presentation/MyPage/ViewController/MyPageViewController.swift

+2
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,8 @@ extension MyPageViewController: UITableViewDelegate {
206206
if switchState {
207207
print("ν‘Έμ‹œ μ•Œλ¦Όμ„ λ°œμ†‘ν•©λ‹ˆλ‹€.")
208208
NotificationManager.shared.scheduleWeekday11AMNotification()
209+
// TODO: PMμœΌλ‘œλΆ€ν„° 전달받은 λ©”μ‹œμ§€λ₯Ό μž…λ ₯ν•©λ‹ˆλ‹€.
210+
view.showToast(message: TextLiteral.MyPage.pushNotificationToastMessage)
209211
} else {
210212
print("ν‘Έμ‹œ μ•Œλ¦Όμ„ λ°œμ†‘ν•˜μ§€ μ•ŠμŠ΅λ‹ˆλ‹€.")
211213
NotificationManager.shared.cancelWeekday11AMNotification()

β€ŽEATSSU_MVC/EATSSU_MVC/Sources/Utility/Extension/UIView+.swift

+6-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,12 @@ extension UIView {
2323
}
2424

2525
extension UIView {
26-
func showToast(message: String) {
26+
27+
/// νŒŒλΌλ―Έν„°λ‘œ μž…λ ₯받은 λ¬Έμžμ—΄μ„ ν† μŠ€νŠΈ λ©”μ‹œμ§€λ₯Ό μ „λ‹¬ν•©λ‹ˆλ‹€.
28+
///
29+
/// - Parameters:
30+
/// - message: ν† μŠ€νŠΈ λ©”μ‹œμ§€λ‘œ 전달할 λ¬Έμžμ—΄
31+
public func showToast(message: String) {
2732
let toastLabel = UILabel()
2833
toastLabel.backgroundColor = UIColor.black.withAlphaComponent(0.6)
2934
toastLabel.textColor = UIColor.white

β€ŽEATSSU_MVC/EATSSU_MVC/Sources/Utility/Literal/TextLiteral.swift

+4
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,10 @@ enum TextLiteral {
7171
/// "λ§ˆμ΄νŽ˜μ΄μ§€" ν…μŠ€νŠΈ λ¦¬ν„°λŸ΄
7272
enum MyPage {
7373

74+
// TODO: PMμœΌλ‘œλΆ€ν„° 받은 λ©”μ‹œμ§€λ‘œ κ΅μ²΄ν•©λ‹ˆλ‹€.
75+
/// "평일 μ˜€μ „ 11μ‹œμ— ν‘Έμ‹œ μ•Œλ¦Όμ„ μˆ˜μ‹ ν•©λ‹ˆλ‹€.
76+
static let pushNotificationToastMessage: String = "평일 μ˜€μ „ 11μ‹œμ— ν‘Έμ‹œ μ•Œλ¦Όμ„ μˆ˜μ‹ ν•©λ‹ˆλ‹€."
77+
7478
/// "ν‘Έμ‹œ μ•Œλ¦Ό μ‚¬μš©μž μ„€μ • μ ‘κ·Ό ν‚€"
7579
static let pushNotificationUserSettingKey: String = "pushNotificationUserSettingKey"
7680

0 commit comments

Comments
Β (0)