File tree 3 files changed +12
-1
lines changed
EATSSU_MVC/EATSSU_MVC/Sources
Presentation/MyPage/ViewController
3 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -206,6 +206,8 @@ extension MyPageViewController: UITableViewDelegate {
206
206
if switchState {
207
207
print ( " νΈμ μλ¦Όμ λ°μ‘ν©λλ€. " )
208
208
NotificationManager . shared. scheduleWeekday11AMNotification ( )
209
+ // TODO: PMμΌλ‘λΆν° μ λ¬λ°μ λ©μμ§λ₯Ό μ
λ ₯ν©λλ€.
210
+ view. showToast ( message: TextLiteral . MyPage. pushNotificationToastMessage)
209
211
} else {
210
212
print ( " νΈμ μλ¦Όμ λ°μ‘νμ§ μμ΅λλ€. " )
211
213
NotificationManager . shared. cancelWeekday11AMNotification ( )
Original file line number Diff line number Diff line change @@ -23,7 +23,12 @@ extension UIView {
23
23
}
24
24
25
25
extension UIView {
26
- func showToast( message: String ) {
26
+
27
+ /// νλΌλ―Έν°λ‘ μ
λ ₯λ°μ λ¬Έμμ΄μ ν μ€νΈ λ©μμ§λ₯Ό μ λ¬ν©λλ€.
28
+ ///
29
+ /// - Parameters:
30
+ /// - message: ν μ€νΈ λ©μμ§λ‘ μ λ¬ν λ¬Έμμ΄
31
+ public func showToast( message: String ) {
27
32
let toastLabel = UILabel ( )
28
33
toastLabel. backgroundColor = UIColor . black. withAlphaComponent ( 0.6 )
29
34
toastLabel. textColor = UIColor . white
Original file line number Diff line number Diff line change @@ -71,6 +71,10 @@ enum TextLiteral {
71
71
/// "λ§μ΄νμ΄μ§" ν
μ€νΈ 리ν°λ΄
72
72
enum MyPage {
73
73
74
+ // TODO: PMμΌλ‘λΆν° λ°μ λ©μμ§λ‘ κ΅μ²΄ν©λλ€.
75
+ /// "νμΌ μ€μ 11μμ νΈμ μλ¦Όμ μμ ν©λλ€.
76
+ static let pushNotificationToastMessage : String = " νμΌ μ€μ 11μμ νΈμ μλ¦Όμ μμ ν©λλ€. "
77
+
74
78
/// "νΈμ μλ¦Ό μ¬μ©μ μ€μ μ κ·Ό ν€"
75
79
static let pushNotificationUserSettingKey : String = " pushNotificationUserSettingKey "
76
80
You canβt perform that action at this time.
0 commit comments