Dunfey · Hotel WWDC as data, est. 1983
Front desk everything
Years
Topics

2020 Design

WWDC20 · 17 min · Design

What’s new in watchOS design

Great watchOS apps are simple and direct. Actions should be discoverable, predictable and relevant. This session covers effective strategies for displaying actions in your watchOS app, whether they are primary buttons that begin core tasks, or contextual actions that might be less commonly used but are still important to offer. For more on implementing actions with the latest UI frameworks, check out "SwiftUI on watchOS."

Watch at developer.apple.com ↗

Transcript all transcripts

Code shown on screen · 3 snippets

Picker swift · at 5:42 ↗
List {
    Picker(selection: $viewing
           title: Text("Viewing")) {
       // Viewing options
    }
    // Stocks 
}
onDelete Modifier swift · at 6:27 ↗
List {
    ForEach(model.locations) {
        ClockCell(location: $0)
    }
    .onDelete { deleteClock(index: $0) }
}
Toolbar swift · at 13:13 ↗
.toolbar {
    Button(action: newMessage) {
        Label("New Message", 
              systemImage: "square.and.pencil")
    }
}

Resources