add .trim shape modifier#325
Conversation
- blur - border width - brightness - contrast - grayscale - hueRotation - saturation
|
The demo added in skiptools/skipapp-showcase-fuse#42 is showing the trim paths all reversed between the iOS and Android builds. Do you see this as well?
|
|
Any thoughts on this, @vincentborko? I'd love to get this merged if we can fix the reversal issue… |
|
Sorry, I didn't see the previous reply, I was very busy with another project of mine. I'll try to look into it ASAP to fix it latest on the weekend.
|
|
compose's addOval, addRect, addRoundRect use internally android.graphics.Path.Direction.CCW, while swiftUI creates path clockwise. apparently this didn't matter for anything besides the new trim and animations. we could either accept the difference as its "native" as I think, or manually update the path functions to overwrite them with clockwise drawing. do you want me to update it to match SwiftUI? |
|
Yeah, I think the Compose needs to match the SwiftUI in this case. Is there some handy "invert trim path" method somewhere that could be used? |
|
Great! Glad it was so simple 😄 |
|
sure thing. |
|
Yes please, that'd be great! |



Thank you for contributing to the Skip project! Please use this space to describe your change and add any labels (bug, enhancement, documentation, etc.) to help categorize your contribution.
Skip Pull Request Checklist:
swift test