import ParcelConfig enum TourDemoStep: Int, CaseIterable, Sendable { case oneWindow, twoWindows, threeWindows, fourWindows, grid, side var windowCount: Int { switch self { case .oneWindow: 1 case .twoWindows: 2 case .threeWindows: 3 case .fourWindows, .grid, .side: 4 } } var layout: ConfigLayout { switch self { case .oneWindow, .twoWindows, .threeWindows, .fourWindows: .columns case .grid: .grid case .side: .side } } var next: Self { switch self { case .oneWindow: .twoWindows case .twoWindows: .threeWindows case .threeWindows: .fourWindows case .fourWindows: .grid case .grid: .side case .side: .oneWindow } } func scene(configuration: ParcelConfiguration) -> TourDemoScene { TourDemoScene( configuration: configuration, layout: layout, windowCount: windowCount, kind: .welcome, showsResult: true) } }