-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Add Codable conformance to common CG types #10343
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Codable conformance to common CG types #10343
Conversation
@swift-ci Please test |
Build failed |
4f9e807
to
d4f4033
Compare
Some large test values need to be gated on OS version for JSON. |
@swift-ci Please test |
Build failed |
Build failed |
For my own edification, can you share the rationale for making these all unkeyed? It seems like the affine transform, at least, would benefit from labels in its default encoded representation. |
@jrose-apple These types are the common currency types for doing most graphics work (macOS has |
d4f4033
to
e06b7e6
Compare
Missed a |
@swift-ci Please test |
Build failed |
Build failed |
e06b7e6
to
feb3799
Compare
@swift-ci Please test |
Build failed |
Build failed |
Give custom Codable implementations for CGAffineTransform, CGPoint, CGSize, CGRect, and CGVector, along with unit tests.
feb3799
to
fedf8e6
Compare
@swift-ci Please test macOS |
@swift-ci Please smoke test Linux |
Build failed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks reasonable to me
What's in this pull request?
Addresses SR-5237.
Gives a custom
Codable
implementation forCGAffineTransform
,CGPoint
,CGSize
,CGRect
, andCGVector
, along with unit tests.