App Services / 15:21

Code-along: Build powerful drag and drop in SwiftUI

App ServicesSwiftUI & UI Frameworksiosipadosmacosvisionos

Key Points

  • Builds a Solitaire game while covering the latest drag-and-drop capabilities in SwiftUI.
  • To get the most out of this session, watch "Meet Transferable" from WWDC22.
  • The session moves through Reordering, Drag multiple items, Drag configuration.
  • Key concepts include Drag and Drop, SwiftUI, Transferable, WWDC22, iOS 16, SwiftData, visionOS 27, PileView.
  • Platform coverage: ios, ipados, macos, visionos.

Condensed Flow

01

Reordering:

Focuses on SwiftData, Drag and Drop.

02

Drag multiple items:

Focuses on visionOS 27.

03

Drag configuration:

Focuses on SwiftUI.

More Detail

Additional details

  • Detailed flow: Reordering -> Drag multiple items -> Drag configuration.
  • APIs and concepts to recognize: Drag and Drop, SwiftUI, Transferable, WWDC22, iOS 16, SwiftData, visionOS 27, PileView, GameView, CardValue, ForEach.
  • Version and support notes focus on iOS 16, SwiftUI, Drag and Drop.

Resources