Search code examples
iosswiftxcodewidgettoday-extension

iOS - How to add "Today Extension" target in Xcode 12.1?


I'm using Xcode 12.1 12A7403, and when I go to Editor > Add Target, the option to create "Today Extensions" using Storyboards no longer exists, but instead, there is only the option to create "Widget Extensions" using SwiftUI.

enter image description here

Is there a way to create "Today Extensions" in this version of Xcode? I still want my extension to be compatible with iOS 13.


Solution

  • From an Apple Systems Engineer of Apple's Developer Forum:

    Today Extensions continue to be available, however, they are deprecated. When your app is submitted for the newer SDK the legacy today widget extension will be removed.

    That being said, widgets that were originally designed for earlier iOS versions are still available on device - just only in more limited capacity (app the bottom of Today View). According to Apple:

    Today widgets designed for iOS 13 and earlier aren’t available on the Home screen, but remain accessible at the bottom of the Today View and in the macOS Notification Center.

    Edit: This means in order to create a Today Extension, one must downgrade to XCode 11, then create an target Today Extension.