macOS Apprentice
If you've always wanted to write your own native macOS apps, this is the book for you! Learn to build beautiful and functional native apps. By Sarah Reichelt.
Who is this for?
This book is for developers who are new to Swift and developing in the Apple ecosystem.
Covered concepts
- Using Xcode
- Coding in Swift
- Designing and developing user interfaces with SwiftUI
- Designing and developing user interfaces with AppKit
- Using Cocoa bindings to connect data to the user interface
- Combining SwiftUI and AppKit in the same app
macOS Apprentice is a series of multi-chapter tutorials where you’ll learn about developing native macOS apps in Swift, using both SwiftUI — Apple’s newest user interface technology — and AppKit — the venerable UI framework. Along the way, you’ll learn several ways to execute Swift code and you’ll build two...
moreBefore You Begin
This section tells you a few things you need to know before you get started, such as what you’ll need for hardware and software, where to find the project files for this book, and more.
Section I: Getting Started
Begin your journey by learning how to install Xcode and the basics of programming in Swift. Along the way, you’ll learn several different ways to execute Swift code.
Section II: Building With SwiftUI
In this section, you’ll use Apple’s newest user interface technology — SwiftUI — to develop a word-guessing game called Snowman. You’ll learn about data flow in SwiftUI, managing multiple windows, using charts and adding macOS-specific features such as toolbars and menus.
Section III: Building With AppKit
From the very beginning of macOS X, AppKit has been the workhorse behind the user interface of all apps and there are still a number of tasks where it is the superior choice. In this section, you’ll explore such an area while building an app to browse movie data from IMDb, the online movie database.
Section IV: Combining SwiftUI & AppKit
Apple has made it simple to include pieces of both user interface frameworks in a single app. In this section, you’ll do just that in order to add some finishing touches to both of the apps from the previous sections.