Update 'Home'

master
Claire 2 years ago
parent
commit
12588be1f8
  1. 4
      Home.md

4
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.

Loading…
Cancel
Save