ํ‹ฐ์Šคํ† ๋ฆฌ ๋ทฐ

import UserNotifications

func goPushAlarm(){
        let content = UNMutableNotificationContent()
        content.title = "๐ŸŽ™โœจ๊ฐ•์˜ ๋…น์Œํ•  ์‹œ๊ฐ„์ด์—์š”๐ŸŽ™โœจ"
        content.subtitle = "์ง€๊ธˆ์€ ๋ฏธ์ ๋ถ„ํ•™ ์ˆ˜์—…์„ ๋…น์Œํ•  ์‹œ๊ฐ„์ž…๋‹ˆ๋‹ค! ์‹œํ—˜๊ธฐ๊ฐ„์„ ์œ„ํ•ด์„œ ๋ฏธ๋ฆฌ ๋…น์Œํ•ด์ฃผ์„ธ์š”๐Ÿ˜š"
        content.body = "11:00 AM ~ 1:00 PM ๋ฏธ์ ๋ถ„ํ•™"
        
        
        var date = DateComponents()
        date.hour = 00
        date.minute = 40
        let trigger = UNCalendarNotificationTrigger(dateMatching: date, repeats: true)
        let request = UNNotificationRequest(identifier: "timerdone", content: content, trigger: trigger)
        UNUserNotificationCenter.current().add(request, withCompletionHandler: nil)
    }

    

์ด๋Ÿฐ์‹์œผ๋กœ ์งœ๋ฉด ๋œ๋‹ค :)

 

๊ณต์ง€์‚ฌํ•ญ
์ตœ๊ทผ์— ์˜ฌ๋ผ์˜จ ๊ธ€
์ตœ๊ทผ์— ๋‹ฌ๋ฆฐ ๋Œ“๊ธ€
Total
Today
Yesterday
๋งํฌ
ยซ   2024/11   ยป
์ผ ์›” ํ™” ์ˆ˜ ๋ชฉ ๊ธˆ ํ† 
1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
๊ธ€ ๋ณด๊ด€ํ•จ