NotificationCenter

public extension NotificationCenter
  • Start day notifications that post on 0:00:00 every day so app can refresh it’s data. For example change Today to Yesterday date formatter string.

    Declaration

    Swift

    func startDayNotifications()
  • Undocumented

    Declaration

    Swift

    func stopDayNotifications()

Perform Once

  • Observes notification once and then removes observer.

    Declaration

    Swift

    func observeOnce(forName: NSNotification.Name?, object: Any?, queue: OperationQueue?, using: @escaping (Notification) -> Void)