Skip to content

Add drawingGroup support #1256

Open
Open

Description

@Kyle-Ye

Summary

Add drawingGroup(opaque:colorMode:) support to render a view subtree into an offscreen image before compositing it.

Scope

  • Add the public view modifier and preserve SwiftUI API availability.
  • Connect drawing groups to the existing display list and rasterization infrastructure.
  • Apply the requested opacity and color rendering mode.
  • Add focused compatibility and rendering coverage for nested content and updates.

Acceptance criteria

  • Applying drawingGroup() renders supported content as one offscreen image.
  • The opaque and colorMode arguments configure rasterization as expected.
  • Changes to grouped content update the rendered output without changing layout.
  • Representative rendering cases match SwiftUI on supported backends.

Activity

  1. added
    area: renderingDisplayList, render backends, renderer hosts, drawing, and effects.
    area: viewView APIs, modifiers, AnyView, ForEach, DynamicView, and related behavior.
    type: featureNew API, behavior, platform support, or user-facing capability.
    on Nov 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: renderingDisplayList, render backends, renderer hosts, drawing, and effects.area: viewView APIs, modifiers, AnyView, ForEach, DynamicView, and related behavior.type: featureNew API, behavior, platform support, or user-facing capability.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions