One Quickie

Easily giving buttons a border/background (SwiftUI->Random)
I still dislike the iOS 7 "here's some random blue text. Really, it's a button". I like buttons to look like buttons. You can add a `.buttonStyle` to a view, and it'll apply the style to al the buttons inside. Here's the different out of the box styles. You can also make your own custom button style.
        .buttonStyle(.bordered)  // gray filled oval
        .buttonStyle(.borderedProminent) // blue filled oval
        .buttonStyle(.borderless) // default (I think) - free floating random blue text
        .buttonStyle(.plain)  // free floating random plain text. that's also a button

borkware home | products | miniblog | rants | quickies | cocoaheads
Advanced Mac OS X Programming book