Skip to content

Align SwiftUI SPI compatibility interfaces - #991

Merged
Kyle-Ye merged 1 commit into
mainfrom
optimize/interface
Aug 15, 2026
Merged

Kyle-Ye merged 1 commit into
mainfrom
optimize/interface

Conversation

@Kyle-Ye

@Kyle-Ye Kyle-Ye commented Aug 15, 2026

Copy link
Copy Markdown
Member

Summary

  • Split the SwiftUI SPI compatibility declarations into public and private Swift interfaces.
  • Align package-facing declarations and SPI annotations with the OpenSwiftUI API surface.
  • Update SUI example imports to use the appropriate SPI access.
  • Avoid unavailable Jindo linkage on macOS and provide a client-emitted clipRect compatibility implementation.

Motivation

The SUI examples need a stable SwiftUI compatibility module that supports both package and SPI imports without relying on project-generation scripts. The previous combined interface also allowed unavailable Jindo code and an unresolved clipRect declaration to reach the macOS linker.

Validation

  • The SUI example builds successfully with the SwiftUIDebug configuration on macOS.
  • The DisplayListUtil compatibility test passes.
  • Interface import probes pass for the public, Private, Jindo, ForUIKitOnly, and ForAppKitOnly surfaces.

@github-actions github-actions Bot added area: compatibility Compatibility, availability, legacy support, and cross-version behavior. area: example Example apps, previews, sample projects, screenshots, or demo assets. platform: macOS macOS-specific behavior or support. type: maintenance Refactor, cleanup, dependency bump, NFC, or internal maintenance. labels Aug 15, 2026
@Kyle-Ye
Kyle-Ye merged commit 24df923 into main Aug 15, 2026
1 check passed
@Kyle-Ye
Kyle-Ye deleted the optimize/interface branch August 15, 2026 07:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: compatibility Compatibility, availability, legacy support, and cross-version behavior. area: example Example apps, previews, sample projects, screenshots, or demo assets. platform: macOS macOS-specific behavior or support. type: maintenance Refactor, cleanup, dependency bump, NFC, or internal maintenance.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant