Repository navigation
feat(path): complete Path implementation and Shape rendering classification - #1258
Conversation
Classify boxed paths via ORBPath.applyShape into filled rectangles, uniform rounded rectangles, stroked borders, and stroked path fallbacks.
Initialize StrokeStyle directly from ORBPathStrokeStyle for stroked shape classification, and update DarwinPrivateFrameworks and OpenRenderBox revisions.
Remove PathDataGetCGPathCallbacks and use ORBPath.Callbacks.cgPath directly in PathBox.withRBPath, and update DarwinPrivateFrameworks and OpenRenderBox revisions.
Provide _CGPathCreateRoundedRect on non-Darwin platforms to enable FixedRoundedRect.cgPath and Path.cgPath unconditionally, expand cross-platform path test coverage, and update OpenCoreGraphics revision.
… platforms Add String/CFString bridging helpers and non-Darwin _CGPathParseString and _CGPathCopyDescription shims, removing the remaining platform conditionals from Path.swift.
Select the C PathData union on Darwin and the Swift PathData layout on non-Darwin platforms directly, and update OpenRenderBox revision.
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 1c6e04ef49
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
/uitest osui-iag update |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #1258 +/- ##
==========================================
+ Coverage 31.16% 31.90% +0.73%
==========================================
Files 1018 1020 +2
Lines 83439 84061 +622
==========================================
+ Hits 26007 26816 +809
+ Misses 57432 57245 -187 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
🛠️ Tuist Run Report 🛠️Tests 🧪
Builds 🔨
Reported by Tuist, faster builds and reliable tests for Xcode, Gradle, Bazel, and more. |
Summary
PathandPathBoxbacked byOpenRenderBoxstorage, covering subpath construction, rounded and uneven rounded rectangles, arcs, point and batch containment (eoFilland non-zero winding), affine transforms, point mapping, trimming, stroking, interpolation, boolean region and line operations, string parsing and formatting,cgPathconversion, and Protobuf serialization across Darwin and non-Darwin platforms.CGPathrounded-rectangle and string shims on non-Darwin platforms along withData/CFDataandString/CFStringCoreFoundation bridges, and remove the obsoleteOPENSWIFTUI_CF_CGTYPESbuild conditional.InsettableShapeinset path generation,StrokeStyle(ORBPathStrokeStyle)initialization, andShapeLayerShapeTypeclassification for filled rectangles, uniform rounded rectangles, stroked borders, and stroked or custom filled paths.--keep-swift-symbolstoScripts/build_xcframework.shfor local slice builds without changing standard distribution stripping.Path,TrimmedPath,FixedRoundedRect, andCGPathhelpers, addPathandShapeexamples and UI snapshot suites, and restore path, stroke, and border modifiers in existing examples.Validation
Path,TrimmedPath,FixedRoundedRect,Data, andStringunit test suites passed on macOS and Linux (Swift 6.3.3).ShapeUITests,PathUITests, andBackgroundStyleUITestssnapshot comparisons matched SwiftUI baselines across all enabled cases on macOS and iOS 18.5 Simulator.Dependency
Closes #1163