Skip to content

Add inset(by:) modifier#467

Merged
stackotter merged 3 commits intomoreSwift:mainfrom
bbrk24:inset
Mar 8, 2026
Merged

Add inset(by:) modifier#467
stackotter merged 3 commits intomoreSwift:mainfrom
bbrk24:inset

Conversation

@bbrk24
Copy link
Contributor

@bbrk24 bbrk24 commented Mar 3, 2026

Fixes #466

An easy way to test the rounded rectangle one is to comment out the .inset(by: 2) in PathsExample on WinUI or GTK. Because those backends clip children to their bounds, the stroke will look thinner along the edges than in the corners if the shape isn't properly inset.

Copy link
Collaborator

@stackotter stackotter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for implementing this! Just requested a couple of docs/style changes, but impl looks great

Copy link
Collaborator

@stackotter stackotter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for addressing those comments, looks good now

@stackotter stackotter merged commit f727aca into moreSwift:main Mar 8, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

inset(by:)

2 participants