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 / 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 / local-storage.ts
Created June 4, 2018 13:18 — forked from faisalmuhammad/local-storage.ts
Generic Local Storage Class
/**
* Customized HTML5 local storage class with additional functionality.
*/
export class LocalStorage
{
// Public Methods
// -------------------------------------------------------------------------------------- //
/**
* Checks if the browser supports local storage.
* @returns true if the local storage is supported; false otherwise.
@robertdean
robertdean / data.service.ts
Created June 4, 2018 13:18 — forked from faisalmuhammad/data.service.ts
Angular | Parallel API Requests
/**
* @author Muhammad Faisal
* @description Service for getting data.
*/
// Angular Imports
import { Injectable } from '@angular/core';
import { HttpErrorResponse } from '@angular/common/http';
import { forkJoin as observableForkJoin, Observable } from 'rxjs';
@robertdean
robertdean / development-only.directive.ts
Created June 4, 2018 13:18 — forked from faisalmuhammad/development-only.directive.ts
Angular | Development Only Directive
/**
* @author Muhammad FAISAL
* @description Controls the display of html contents only during development mode.
* @example <button development-only>Some Button</button>
*/
// Angular Imports
import { Directive, OnInit, ElementRef, isDevMode } from '@angular/core';
// Define class for the Directive
// Mocked Service
angular.module('mock.users', []).
factory('UserService', function($q) {
var userService = {};
userService.get = function() {
return {
id: 8888,
name: "test user"
}
/* =============================================================
* bootstrap-scrollspy.js v2.0.1
* http://twitter.github.com/bootstrap/javascript.html#scrollspy
* =============================================================
* Copyright 2012 Twitter, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Linq.Expressions;
namespace BetterFacetedSearchAPI
{
class Program
{