-
Notifications
You must be signed in to change notification settings - Fork 100
Extend CoreImage conformance #10
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
Conversation
stephencelis
left a comment
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.
Thanks for taking the time to PR! Some of the conformances should be good to go, but I'm bit quite sure I understand all of them...
| extension CIContextOption: CustomDumpStringConvertible { | ||
| public var customDumpDescription: String { | ||
| switch self { | ||
| default: | ||
| return "CIContextOption.(default, rawValue: \(self.rawValue))" | ||
| } | ||
| } | ||
| } | ||
|
|
||
| extension CIImageRepresentationOption: CustomDumpStringConvertible { | ||
| public var customDumpDescription: String { | ||
| switch self { | ||
| default: | ||
| return "CIImageRepresentationOption.(default, rawValue: \(self.rawValue))" | ||
| } | ||
| } | ||
| } | ||
|
|
||
| extension CIFormat: CustomDumpStringConvertible { | ||
| public var customDumpDescription: String { | ||
| switch self { | ||
| default: | ||
| return "CIFormat.(default, rawValue: \(self.rawValue))" | ||
| } | ||
| } | ||
| } | ||
|
|
||
| extension CIImageOption: CustomDumpStringConvertible { | ||
| public var customDumpDescription: String { | ||
| switch self { | ||
| default: | ||
| return "CIImageOption.(default, rawValue: \(self.rawValue))" | ||
| } | ||
| } | ||
| } | ||
|
|
||
| extension CIImageAutoAdjustmentOption: CustomDumpStringConvertible { | ||
| public var customDumpDescription: String { | ||
| switch self { | ||
| default: | ||
| return "CIImageAutoAdjustmentOption.(default, rawValue: \(self.rawValue))" | ||
| } | ||
| } | ||
| } | ||
|
|
||
| extension CIKernel: CustomDumpStringConvertible { | ||
| public var customDumpDescription: String { | ||
| switch self { | ||
| default: | ||
| return "CIKernel.(default, rawValue: \(self))" | ||
| } | ||
| } | ||
| } | ||
|
|
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.
Should any of these conformances be necessary? None are switching on enum-like values, so I think the default rendering should be ok, right?
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.
Yes, I agree!
Co-authored-by: Stephen Celis <stephen.celis@gmail.com>
|
I updated by removing the unnecessary conformance. |
stephencelis
left a comment
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.
Thanks!
I extended some CoreImage conformance