Framework

NotificationCenter

Create and manage widgets for the Today view.

Overview

The Notification Center framework helps you create and manage app extensions that implement Today widgets. The framework provides an API you can use to specify whether a Today widget has content to display, and to customize aspects of its appearance and behavior. In macOS, the Notification Center framework also provides ways to customize the editing and searching experience in a widget.

Widgets showing weather information in the Today view on iOS and macOS.

To learn more about creating a Today widget app extension, see the App Extension Programming Guide.

Topics

Core Widget

Building a Simple Widget for the Today View

Provide users with a glanceable look at your app’s data.

NCWidgetProviding

The interface for customizing the appearance and behavior of a Today widget.

NCWidgetController

An object used to specify whether a Today widget has content to display.

Search View

NCWidgetSearchViewController

An object that provides a default search view within a macOS Today widget.

NCWidgetSearchViewDelegate

The interface for enabling user searches in the search view controller of a macOS Today widget.

List View

NCWidgetListViewController

An object that provides a list view for displaying content in a macOS Today widget.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software