Oddbean new post about | logout
 Real Talk.  The most powerful design tool I use on a regular basis is the `.border(.red)` modifier in SwiftUI.  The ability to quickly examine a view's bounds IN CONTEXT has always been super useful to diagnose weird layout bugs, fix alignment and correct visual spacing.

https://files.mastodon.social/media_attachments/files/111/137/291/466/864/578/original/6f893da15036b93e.png

https://files.mastodon.social/media_attachments/files/111/137/291/593/807/701/original/945d6c0bf9361f6d.png 
 @4751065d Does SwiftUI enlarge a bordered element by the width of the border, or does the border draw within the un-bordered bounds?