Skip to content

Updated soft-deprecated SwiftUI APIs and added Sendable to CGFrame - #5

Merged
ryanlintott merged 2 commits into
mainfrom
dev
Sep 3, 2026
Merged

ryanlintott merged 2 commits into
mainfrom
dev

Conversation

@ryanlintott

Copy link
Copy Markdown
Owner

Changed .overlay(:) and .mask(:) to their trailing-closure forms and
.accessibility(hidden:) to .accessibilityHidden(_:).
Added Sendable conformance to CGFrame

Changed .overlay(_:) and .mask(_:) to their trailing-closure forms and
.accessibility(hidden:) to .accessibilityHidden(_:). All replacements are
available at the package's minimum deployment targets.

The overlay change also guards against the SDK 27 @ContentBuilder
unification, which removes the View constraint from result builders and
makes the direct-argument form of overlay ambiguous for ShapeStyle
expressions carrying .opacity() or .blendMode(). The trailing-closure form
is Apple's documented fix.
CGFrame conforms to CGFrameRepresentable, which is a plain protocol, so it
got no Sendable conformance despite being composed entirely of Sendable
parts. Public types do not get one implicitly.

The shape types do not need this. SwiftUI declares Shape as refining
Sendable, so CornerCustom, RelativeCornerCustom, CornerRectangle,
CornerTriangle, CornerPentagon, SketchyLine and SketchyLines already
conform transitively through Shape and InsettableShape.
@ryanlintott
ryanlintott merged commit 1cc8fe2 into main Sep 3, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant