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