-
SwiftUI Color
As developers, we are used to thinking of color as a numeric way to specify a particular tint. But in SwiftUI,
Color
- like almost everything else - is actually aView
in its own right. This leads us to two very interesting questions: how do we use a view to specify a color and how can we use the fact thatColor
isView
? -
Custom Fonts in iOS & macOS apps
As a rule, I prefer to use fonts that come pre-installed with the system. That means that your interface is already familiar to users, you get dynamic font sizing and if Apple updates the fonts, you get the updates without doing anything.
But sometimes, you really need to use a different font in your apps, and as the process of getting a custom font to display in your app can be confusing and tedious, I thought I would go through the steps for both iOS and macOS apps.
I probably should have published this on a different day, but it is not a joke.... really.
-
SwiftUI for Mac Extras
Last year, I wrote a 3 part series of articles on using SwiftUI to build a Mac app. I would like to thank everyone who contacted me about this series. It was received very well and revealed that there is still a large amount of interest in programming for the Mac.
Some of the responses I got were pointing out different or better ways to do things, so I am going to list them here, adding to this post as I get new information. The relevant sections in the original posts will have links to the fixes suggested here, but I decided it was easier to list the changes in a separate post, rather than asking people to re-read the whole series looking for modifications.
-
SwiftUI for Mac - Part 3
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
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.