From 12588be1f8b600825060db6ee084e3d590e72ae0 Mon Sep 17 00:00:00 2001 From: Claire Date: Thu, 29 Sep 2022 19:37:02 +0000 Subject: [PATCH] Update 'Home' --- Home.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Home.md b/Home.md index afee0e7..05836db 100644 --- a/Home.md +++ b/Home.md @@ -252,7 +252,7 @@ The easiest way to manage light and dark icons is to just append a suffix to you Now that we can change the icon based on the theme, we need to add a listener for the system-wide [Notification](https://developer.apple.com/documentation/foundation/notification/) that fires when the system them is changed between dark and light. -The `extension` block goes **outside** your `ApplicationDelegate` class definition. +The `extension` block goes **outside** your `AppDelegate` class definition. ```swift extension Notification.Name { @@ -356,7 +356,7 @@ Apple does at least provide a useful function here to do the date math for us, a ## Using the moon phase to build the menu -Now that we have `currDays`, we need to find the right moon phase. I created a [`Dictionary`](https://developer.apple.com/documentation/swift/dictionary) (an unordered array of key-value pairs) named `phaseArray` in my `ApplicationDelegate` class containing all the information I need to calculate the correct phase and display the right icon. +Now that we have `currDays`, we need to find the right moon phase. I created a [`Dictionary`](https://developer.apple.com/documentation/swift/dictionary) (an unordered array of key-value pairs) named `phaseArray` in my `AppDelegate` class containing all the information I need to calculate the correct phase and display the right icon. A few notes: * I originally used emoji to build my menu, and left that info in my dictionary after I switched to icons.