A quick and simple sketch app

Just to give us something to type our experiments into, we will create an extremely simplistic app, one that will present a window into which the user can type a rate of sales tax and a pre-tax price, and will present the resulting price inclusive of sales tax.

It shall be called Sales Tax Calc. I know, it's not a brilliant name.

It is assumed the reader is able to create a new Xcode project from scratch, using Xcode 8 or later. If you are new to Xcode, this would be a good moment to consult one of the many excellent resources out there on getting started with Xcode. We'll wait here for you.

Create a new Xcode project called SalesTaxCalc, setting it to use Storyboards.

Drag four labels and two standard text fields ...

Get Mastering macOS Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.