Skip to content

Add optional rendering mode to SystemImage #56

Closed
@mpospese

Description

@mpospese

Let's expand the functionality of our system image loading protocol to include rendering mode.
(Theoretically we could also expand this to ImageAsset, but catalog assets can already specify rendering mode in the asset.)

  • Add property public static var renderingMode: UIImage.RenderingMode? { get }
  • Default implementation is { nil }
  • Modify loadImage() to check renderingMode and if non-nil, modify the returned image with .withRenderingMode(:)

This will let users set the rendering mode on an entire group (enum) of images.
This will be useful in YStepper and YCalendarPicker.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions