This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| hello |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| To revert to a previous commit, ignoring any changes: | |
| git reset --hard HEAD |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Create a Notification Name: | |
| extension Notification.Name { | |
| static let reload = Notification.Name("reload") | |
| } | |
| You can post a notification | |
| NotificationCenter.default.post(name: .reload, object: nil) | |
| And add an observer at the view controller that you want to reload the data: |