Skip to content

Instantly share code, notes, and snippets.

I want to build a native macOS app named JSONFormatter using Xcode, Swift, and SwiftUI. Use the attached sketch as the visual reference for the application.

Do not write, modify, or generate any code yet.

First, inspect the existing Xcode project and then produce a staged implementation plan. The plan should be detailed enough that each stage can be completed, built, and manually verified before moving to the next stage.

App requirements:

  • Native macOS SwiftUI application
  • Two-pane layout
@robertdean
robertdean / CLAUDE.md
Last active April 7, 2026 12:32 — forked from NDCSwift/CLAUDE.md
A simple template for Swift 6 and iOS development in Xcode using Agentic coding (Claude or Codex)

Project Context

Overview

  • iOS 26 SwiftUI app targeting iPhone and iPad
  • Minimum deployment: iOS 26
  • Swift 6 with strict concurrency
  • Uses SwiftUI throughout - no UIKit unless absolutely necessary

Architecture

@robertdean
robertdean / CLAUDE.md
Created February 9, 2026 13:52 — forked from StewartLynch/CLAUDE.md
Claude.md Instructions for Xcode 26.3

Global Claude Code Instructions

Project Documentation Requirements

CLAUDE.md (Project Memory)

When starting work on a new Xcode project, if no CLAUDE.md exists in the project root, create one with:

  • Project overview and purpose
  • Key architecture decisions
@robertdean
robertdean / gist:29c100a609f863f74c515a7cdc8b2677
Created July 14, 2025 20:03
Microsoft ENTRA ID Fetching from iOS app
import MSAL
func acquireTokenInteractively() {
guard let applicationContext = self.applicationContext,
let webViewParameters = self.webViewParameters else {
return
}
let parameters = MSALInteractiveTokenParameters(scopes: ["User.Read"], webviewParameters: webViewParameters)
parameters.promptType = .selectAccount
@robertdean
robertdean / ESPHome-YAML-ld2410-esp32.yaml
Created August 20, 2023 15:11 — forked from peyanski/ESPHome-YAML-ld2410-esp32.yaml
Use this code to make your LD2410 sensor to work with ESP32 or ESP8266 board
esphome:
name: ld2410-esp32
friendly_name: ld2410-esp32
esp32:
board: esp32dev
framework:
type: arduino
# Enable logging
@robertdean
robertdean / ng-setup.sh
Last active May 10, 2023 13:37
setup v2
red=`tput setaf 1`
green=`tput setaf 2`
reset=`tput sgr0`
echo "${green}${green}creating project shell${reset}"
ng new ui --skip-install=true --routing=true --style=scss --skip-git=true --create-application=false --commit=false --verbose=true
cd ui
echo "${green}creating admin projectl${reset}"
https://github.com/tldr-pages/tldr/blob/master/pages/common/ffmpeg.md
Video to GIF
SET filters="fps=%4,scale=%3:-1:flags=lanczos"
ffmpeg -v warning -i %1 -vf "%filters%,palettegen" -y palette.png
ffmpeg -v warning -i %1 -i palette.png -lavfi "%filters% \[x\]; \[x\]\[1:v\] paletteuse" -y %2
DEL palette.png
togif.bat <input.mp4> <output.gif> <width> <fps>
Extract audio from a video
@robertdean
robertdean / 🔥.excalidrawlib
Last active September 1, 2020 13:00
Excalidraw Library with some icons and stuff
{
"type": "excalidrawlib",
"version": 1,
"library": [
[
{
"type": "rectangle",
"version": 152,
"versionNonce": 1755960817,
"isDeleted": false,
@robertdean
robertdean / ui-library.excalidrawlib
Created August 18, 2020 12:19
ui-library.excalidrawlib
{
"type": "excalidrawlib",
"version": 1,
"library": [
[
{
"type": "rectangle",
"version": 152,
"versionNonce": 1755960817,
"isDeleted": false,
‎‎​