Filters

Hide filters
Platform
Content Type
Difficulty

All Tutorials · 5 Results

Contained in: macOS Apprentice swift ui
iOS & Swift New
macOS Apprentice
…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 fully featured apps from scratch. If you’re new to macOS and Swift
iOS & Swift

Chapter in macOS Apprentice

Introducing Xcode

…spend most of your time working in a .swift file: Xcode window panes Note: If you don’t see the file extension .swift in the Project navigator, press Command-, to open Settings… then, in the General tab, set File Extensions to Show All: Show all file extensions. The Xcode window…
iOS & Swift

Chapter in macOS Apprentice

Getting Data Into Your App

Winning a game You can see the random word in the Xcode console, so make sure you test winning and losing. Does the UI do everything you expect? Fantastic work! Tweaking the App Playing the game, there are a few improvements to make. It’s inconvenient that when you start…
iOS & Swift

Chapter in macOS Apprentice

Creating the Edit Interface

…user interface. You’ll use Main.storyboard for the design, so you don’t need a separate design file. Make sure Language is set to Swift and press Next, then Create: Adding a view controller. This gives your project a new NSViewController class…
iOS & Swift

Chapter in macOS Apprentice

Showing Other Windows

…first. Inside the curly braces, you have the label argument. This displays a header and the current value. This provides the UI for the first setting, but if you run the app now, it won’t appear. Open SnowmanApp.swift and, in the Settings scene, replace the Text placeholder with: SettingsView…