Skip to content

Instantly share code, notes, and snippets.

@rnmp
rnmp / Stacks.swift
Created October 29, 2024 02:27
Prototype of stacks in SwiftUI. See it in action: https://youtu.be/g7ag_P3TYZg
import SwiftUI
// The following code was generated using GPT 4-o1 with modifications and follow ups.
//
// Initial prompt:
//
// How would you code a view in swiftui where there are 3 views on top of each other
// (think 3 squares) and when tapped, they transition into a full window view where they
// are all presented in a grid? This is more or less similar to what macOS has in stacks
// on the dock