Skip to content

Instantly share code, notes, and snippets.

@JagCesar
Created August 16, 2023 20:27
Show Gist options
  • Select an option

  • Save JagCesar/5ec942d49332a8fbb3edd1032e7a08f2 to your computer and use it in GitHub Desktop.

Select an option

Save JagCesar/5ec942d49332a8fbb3edd1032e7a08f2 to your computer and use it in GitHub Desktop.

Revisions

  1. JagCesar created this gist Aug 16, 2023.
    3 changes: 3 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,3 @@
    .onReceive(NotificationCenter.default.publisher(for: UIApplication.willResignActiveNotification)) { _ in
    WidgetCenter.shared.reloadAllTimelines()
    }