Supporting Older Versions of iOS and macOS

Supporting Older Versions of iOS and macOS

I recently answered a question from someone who wanted to know what version of Xcode and Swift to use to develop an app for iOS 9 and another question from someone who wanted to know what version of Xcode to use to develop an app to run on macOS 10.7. Answering what is basically the …

+ Read More

Swift Optionals

Swift Optionals

I saw in a talk by Paul Hudson at NSSpain 2018 that optionals are what people learning Swift struggle with the most. That makes optionals a good topic to cover on a site called Swift Dev Journal. What Is an Optional? An optional is a data type for a variable where the variable either exists …

+ Read More

Make a Simple Mac App in Swift

Make a Simple Mac App in Swift

I have seen some questions from people looking for information on developing Mac apps in Swift. To help people who want to write Mac apps in Swift, I’ve written this tutorial that walks you through creating a simple Mac app in Swift. The app generates and displays a random number when you click a button. …

+ Read More

Core Data Code Generation

Core Data Code Generation

Starting with Xcode 8, you can let Xcode generate the code for your Core Data entities. Access an entity’s code generation options by selecting the entity and opening the data model inspector. The Codegen menu is where you specify the code generation for the entity. There are three code generation options. Choosing Manual/None tells Xcode …

+ Read More