Add Custom Inset Properties, Option to Disable Image Resizing, Provide Segment Borders#23
Add Custom Inset Properties, Option to Disable Image Resizing, Provide Segment Borders#23dbburgess wants to merge 4 commits intoxaviermerino:masterfrom
Conversation
I'm not sure how to handle the insets for the vertical style, as I haven't used that style or really dug into how it's positioning things.
I'm not sure how to handle the insets for the vertical style, as I haven't used that style or really dug into how it's positioning things.
For some use cases, this may make sizing and positioning images more challenging and confusing.
|
Looks great. Let me get a working charger so I can use my Mac and then I'll take a look into it. Thanks for your effort. Sent from my iPhone
|
|
Thanks! No problem, I understand...Take your time. I can happily keep using my fork for now. I actually just added another option to provide borders to the segments. I can split stuff up into separate PRs if you'd prefer, and as I said, feedback is welcome if you'd prefer to craft the public interface in a different direction. |
Borrowing from the approach @randybyrd322 made in #19, this adds properties to provide custom insets for finger-grained control over positioning. Unfortunately, our two pull requests won't play nicely together. I'd be happy to modify mine as necessary to make it work though.
Also, I haven't had a chance to look at how the vertical hybrid style works, so it doesn't modify the insets for that at all. I think semantically, the way contentInsets are done now also aren't quite correct (in plain hybrid, at least...I think it should probably do some combination of the two provided insets somehow).
Also, I added an option to disable the image resizing, as it was making getting the icons to look good challenging for me.
Feedback and suggestions are welcome, I'm happy to modify / improve the PR as necessary. Thanks for the useful / great project! 👍