Making a configurable widget | Apple Developer Documentation

Give people the option to customize their widgets by adding a custom app intent to your project.