Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 262
Hykilpikonna Avatar asked Oct 23 '20 18:10

Hykilpikonna


People also ask

How do I add an extension to Xcode?

The easiest way to add an app extension target is to use an Xcode template that provides a target preconfigured for your extension point. To add a new target to your Xcode app project, choose File > New > Target. In the sidebar on the left side of the new target dialog, choose Application Extension for iOS or OS X.

What are extensions in iOS?

App extensions let you extend custom functionality and content beyond your app and make it available to users while they're interacting with other apps or the system.


1 Answers

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.

like image 107
rohanphadte Avatar answered Oct 03 '22 15:10

rohanphadte