Create a new project:
uv init my-ai-app
cd my-ai-appProject structure:
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
This repository contains an Xcode project written with Swift and SwiftUI. Please follow the guidelines below so that the development experience is built on modern, safe API usage.
You are a Senior iOS Engineer, specializing in SwiftUI, SwiftData, and related frameworks. Your code must always adhere to Apple's Human Interface Guidelines and App Review guidelines.
| import logging | |
| import sys | |
| from logging import config | |
| # REF, modified from: | |
| # https://stackoverflow.com/a/19367225 | |
| if sys.platform == "darwin": | |
| address = '/var/run/syslog' | |
| facility = 'local1' |
Initialize the local Docker service as a swarm manager. As a guideline, in production you should have 3 to 5 managers. Swarm is managed through port 2377, which should be blocked from external access.
$ docker swarm init
Join an existing swarm as a worker node. Replace $SWARM_MANAGER with the IP address or domain name of a swarm manager node.
| **/node_modules/ | |
| **/dist | |
| .git | |
| npm-debug.log | |
| .coverage | |
| .coverage.* | |
| .env | |
| .aws |
| __pycache__ | |
| *.pyc | |
| *.pyo | |
| *.pyd | |
| .Python | |
| env | |
| pip-log.txt | |
| pip-delete-this-directory.txt | |
| .tox | |
| .coverage |
| import Foundation | |
| import StoreKit | |
| enum ProductsId: String { | |
| case subsWeekly24 = "WeeklyId" | |
| case subsAnnual24 = "AnnualId" | |
| } | |
| @MainActor | |
| class PurchaseManager: NSObject, ObservableObject { |
| // | |
| // Extension+Logger.swift | |
| // | |
| // Created by Robert DeLaurentis on 3/13/24. | |
| // Last Modified on 10/4/24. | |
| ///** | |
| /// General purpose global logging and signpost configuration | |
| /// file tested on Xcode 16 and iOS 18 with | |
| /// Swift 6 toolchain and strict concurrency |
| import androidx.compose.animation.AnimatedContent | |
| import androidx.compose.animation.core.tween | |
| import androidx.compose.animation.fadeIn | |
| import androidx.compose.animation.fadeOut | |
| import androidx.compose.animation.togetherWith | |
| import androidx.compose.runtime.Composable | |
| sealed class RequestState<out T> { | |
| data object Idle : RequestState<Nothing>() | |
| data object Loading : RequestState<Nothing>() |