reports icon indicating copy to clipboard operation
reports copied to clipboard

FB13132205: The description for @Parameter (IntentParameter) in an WidgetConfigurationIntent does not show up in the widget configuration screen

Open sindresorhus opened this issue 2 years ago • 1 comments

  • Date: 2023-09-07
  • Resolution: Open
  • Area: App Intents
  • OS: iOS 17
  • Type: Incorrect/Unexpected Behavior

Description

See the sample code and notice in the attached screenshot how the “Album” setting is missing a description.

struct AlbumConfiguration: AppIntent, WidgetConfigurationIntent {
	static let title: LocalizedStringResource = "Album"
	static let description = IntentDescription("Configuration for widget")
	static let isDiscoverable = false

	@Parameter(
		title: "Album",
		description: "Some description"
	)
	var album: PhotoAlbumAppEntity?

	// ...
}
Screenshot

sindresorhus avatar Sep 07 '23 13:09 sindresorhus

Just adding here that I would love to see this parameter description in the widget configuration UI as well. There are certain controls which could really use some extra context.

LukasCZ avatar Oct 22 '24 10:10 LukasCZ