[WIP] iOS border updates: BorderEdges, BorderThickness, BorderDrawingStyle. #85
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Here are some iOS updates that are still a WIP (but pretty close). If you run the app and look at the bordered pancakes, you'll see that each edge is drawn separately and leaves room for the corner arcs. I'm struggling to get the math perfect for filling in the arcs. Have a a look at the top-left and top-right corners. They are almost working but that's not good enough of course. I'm having another look now but decided to submit this PR in case someone wants to help.
Updates are for the following:
BorderThickness is now of type Thickness so now each side can be of a specified thickness (I wanted this so when they're stacked vertically with no margin so they don't double up).
BorderEdges can be specified. This could be useful for maybe two-tone info or warning pancakes that just have a thick inside left border. It's an enum (Left, Right, Top, Bottom, All).
BorderDrawingStyle now works by drawing the borders inside, outside, or centred. Previously they were drawn centred as that is the default for UIBezierPath. This was causing the borders to be clipped for me when stacking pancakes.
If we can figure out the corner fills, then iOS can be finished pretty quickly. Android would need to be updated as well but should be easier to copy from iOS.