This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // MIT Licence | |
| // | |
| // LLM: qwen/qwen3-30b-a3b-2507 | |
| // | |
| // Software: LMStudio | |
| // | |
| // Prompt in 3 steps: | |
| // 1. I want to built simple SwiftUI app in one file. Help | |
| // 2. Please, return only code in the markdown markup. No comments, no detail text. | |
| // Make this app more complex - add several buttons and functions for them. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ────────────────────────────────────────────────────────────── | |
| // 1️⃣ Project‑Structure (all files in one block for demo) | |
| // ────────────────────────────────────────────────────────────── | |
| // | |
| // AppDelegate.swift – UIApplicationDelegate (optional) | |
| // SceneDelegate.swift – UIWindowSceneDelegate (if needed) | |
| // MainApp.swift – @main entry point | |
| // Models/CounterEntity.swift | |
| // Domain/Protocols/CounterRepositoryProtocol.swift | |
| // Domain/UseCases/IncrementCounter.swift |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Prompt: "Write simple SwiftUI app. Return only code in markdown blocks." | |
| import SwiftUI | |
| @main | |
| struct SimpleSwiftUIApp: App { | |
| var body: some Scene { | |
| WindowGroup { | |
| ContentView() | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // source 'SwiftUI: Liquid Glass. From Basic to (A Little) Advance' https://levelup.gitconnected.com/swiftui-liquid-glass-from-basic-to-a-little-advance-cdef4e4c5b90 | |
| import SwiftUI | |
| struct ContentView: View { | |
| @State private var offsetX: CGFloat = 0.0 | |
| @State private var containerSpacing: CGFloat = 30.0 | |
| @State private var show: Bool = true | |
| @Namespace private var namespace |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // | |
| // ContentView.swift | |
| // GlassOnAWater | |
| // | |
| // Created by Merkushev Egor on 20.08.2025. | |
| // | |
| import SwiftUI | |
| struct DonutShape: Shape { |
System: You are an expert project analyst and specification architect, specialized in creating implementation-ready technical assignments (Tech Specs), actionable TODO breakdowns, and complete PRD (Product Requirements Documents) tailored for execution by LLM-based agents. Your output must be self-contained, unambiguous, and machine-readable, enabling LLM agents to execute the plan without human clarification.
For each provided high-level goal or idea:
-
Define the scope and intent. • Restate the objective in precise, unambiguous terms. • Identify the primary deliverables and success criteria. • Explicitly note any constraints, assumptions, or external dependencies.
-
Decompose into a structured, hierarchical TODO plan.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import UIKit | |
| class SublayerDelegate: NSObject, CALayerDelegate { | |
| func animationFromSuperlayer(of layer: CALayer, forKey event: String) -> CAAnimation? { | |
| guard let superlayer = layer.superlayer else { return nil } | |
| guard let firstAnimationKey = superlayer.animationKeys()?.first else { return nil } | |
| return superlayer.animation(forKey: event) ?? superlayer.animation(forKey: firstAnimationKey) | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import UIKit | |
| final class SynchronizedBoundsAction: NSObject, CAAction { | |
| private let wrappedAction: CAAction? | |
| private weak var targetLayer: MyLayer? | |
| private weak var sublayer: CALayer? | |
| private var displayLink: CADisplayLink? | |
| private var startTime: CFTimeInterval = 0 | |
| private var duration: CFTimeInterval = 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // QuartzCore`-[CALayer actionForKey:] | |
| - (id<CAAction>)actionForKey:(NSString *)event { | |
| // <+0>: pacibsp | |
| // <+4>: sub sp, sp, #0x60 | |
| // <+8>: stp x24, x23, [sp, #0x20] | |
| // <+12>: stp x22, x21, [sp, #0x30] | |
| // <+16>: stp x20, x19, [sp, #0x40] | |
| // <+20>: stp x29, x30, [sp, #0x50] | |
| // <+24>: add x29, sp, #0x50 | |