My Books
-
SwiftUI for Mac - Part 3
Read More »In part 1 of this series, I created a Mac app using SwiftUI. The app uses a Master-Detail design to list entries in an outline on the left and show details about the selected entry in the detail view on the right. In part 2 I explored using menus, adding all the expected user interface elements and opening secondary windows.
In this third and final part, I want to look at the various ways to present dialogs to the user.
-
SwiftUI for Mac - Part 2
Read More »In part 1 of this series, I created a Mac app using SwiftUI. The app uses a Master-Detail design to list entries in an outline on the left and show details about the selected entry in the detail view on the right.
Now it is time to explore some more of the features of a Mac app with SwiftUI.
-
SwiftUI for Mac - Part 1
Read More »So far, nearly all the articles I have seen about SwiftUI show it being used for iOS, more particularly for iPhone. But SwiftUI works on all Apple's platforms, and as I am primarily a Mac developer, I decided to try out a Mac app and see what happened.
-
SwiftUI First Thoughts
Read More »At WWDC 2019, Apple surprised us all by announcing a completely new declarative UI framework called SwiftUI. Quoting snippets from the Apple announcements, "SwiftUI is an innovative, exceptionally simple way to build user interfaces across all Apple platforms with the power of Swift" and "SwiftUI uses a declarative syntax so you can simply state what your user interface should do." But what does this mean and should we all adopt it now?
-
Learning Swift - Tuples
Read More »I sometimes like to focus on aspects of the Swift language that get less publicity, but that I think are really useful without adding a lot of complexity. This time I am looking at tuples.
There are many different ways of collecting data together in Swift, but for small amounts of transitory data, I find tuples to be an extremely convenient data structure.


