-
Build your first app in Swift Playgrounds
Learn how you can easily prototype and build apps with Swift Playgrounds. We'll show you how to create an app from a blank project, build its interface with SwiftUI, and use Swift Package Manager to add extra functionality from an open source package. We'll also explore how you can debug issues using Previews and the console and take you through submitting an app to App Store Connect for distribution via TestFlight.
Recursos
Vídeos relacionados
WWDC22
-
Buscar neste vídeo...
-
-
3:31 - First Tea Item
Text("Jasmine Green") -
3:39 - List Of Teas
Text("Jasmine Green") Text("English Breakfast") Text("Byte's Oolong") Text("Golden Tippy Assam") Text("Matt P's Tea Party") Text("Darjeeling") Text("Genmaicha") Text("Jasmine Green") Text("Vanilla Rooibos") -
4:45 - OrderedSet of Teas
let teas: OrderedSet<String> = ["Byte's Oolong", "Golden Tippy Assam", "English Breakfast", "Matt P's Tea Party", "Darjeeling", "Genmaicha", "Jasmine Green", "Vanilla Rooibos"] -
5:28 - ForEach View
ForEach(teas, id: \.self) { tea in Text(tea) } -
8:45 - Initial Preview Provider
struct TeaWheelView_Previews: PreviewProvider { static let items: [String] = ["Item 1", "Item 2", "Item 3", "Item 4", "Item 5"] static var previews: some View { Text("Hello, world!") } } -
9:22 - Preview Provider with TeaWheelView
struct TeaWheelView_Previews: PreviewProvider { static let items: [String] = ["Item 1", "Item 2", "Item 3", "Item 4", "Item 5"] static var previews: some View { TeaWheelView(items, id: \.self) .padding() } } -
10:40 - TeaWheelView in Assistant Tab
TeaWheelView(dataSource.teas, action: { tea in lastPickedTea = tea showPickAlert = true }) -
11:55 - Preview Provider with Print Statement
struct TeaWheelView_Previews: PreviewProvider { static let items: [String] = ["Item 1", "Item 2", "Item 3", "Item 4", "Item 5"] static var previews: some View { TeaWheelView(items, id: \.self) { print($0) } .padding() } }
-