iOS) Notification.Name extention ํด์ ์ฌ์ฉํ๊ธฐ
notification ์ด ํ๋ก์ ํธ ๋ด์์ ํผ์ ธ์๊ธฐ ๋๋ฌธ์ ์ด๋ฆ์ด ๊ฐ๋ ๊ฒน์น๊ธฐ๋ ํ๊ณ ๋ด๊ฐ ๋ฌด์จ ์ด๋ฆ์ ์ฌ์ฉํ๋์ง ๊ธฐ์ต์ด ์๋๊ธฐ๋ ํ๋ค. ๊ทธ๋์ extension ์ผ๋ก Notification.Name ์ ํ์ฅ์์ผ์ ์ฌ์ฉํด๋ณด๊ธฐ๋ก ํ๋ค. NotificaationName+Extention extension Notification.Name { static let testNotification = Notification.Name(rawValue: "test") } ์ฌ์ฉํ ๋ // post NotificationCenter.default.post(name: .testNotification, object: nil) // observer NotificationCenter.default.addObserver(self, ..
iOS
2021. 8. 23. 11:07
TAG
- WWDC22
- Algorithm
- configurable widget
- Widget
- Notification
- WWDC
- github
- RxCocoa
- UserDefaults
- rxswift
- containerBackground
- CloneCoding
- Objective-C
- APNS
- YPImagePicker
- SwiftUI
- urlsession
- async/await
- OpenSourceLibrary
- Swift
- MVVM
- ์๋ฒํต์
- IOS
- WidgetKit
- 2022 KAKAO TECH INTERNSHIP
- Protocol
- Firebase
- watchOS
- projectsetting
- MOYA
์ต๊ทผ์ ์ฌ๋ผ์จ ๊ธ
์ต๊ทผ์ ๋ฌ๋ฆฐ ๋๊ธ
๊ธ ๋ณด๊ดํจ
์ผ | ์ | ํ | ์ | ๋ชฉ | ๊ธ | ํ |
---|---|---|---|---|---|---|
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 |
๋งํฌ
- Total
- Today
- Yesterday