Something went wrong. Try again.
An auto tiler for macOS
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839import 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) }}