# xmpr13/relowcased architecture

> Architecture diagram of the GitHub repository xmpr13/relowcased, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-07). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/xmpr13/relowcased
- Repository: https://github.com/xmpr13/relowcased

## Overview

reLowCased is a SwiftUI iOS text utility. Users enter through a home screen and choose case conversion, Caesar-cipher encryption/decryption, or text-to-speech; the selected tool accepts text and performs its operation. Conversion and cipher screens also let users copy results or clear their input. The app uses AVFoundation speech synthesis for playback. The README documents the user workflow and copy capability; the shown SwiftUI sources establish navigation and tool behavior.

Main entry points: [`reLowCased/ContentView.swift`](https://github.com/xmpr13/relowcased/blob/main/reLowCased/ContentView.swift) (Tool menu), [`reLowCased/reLowCasedApp.swift`](https://github.com/xmpr13/relowcased/blob/main/reLowCased/reLowCasedApp.swift) (App entry), [`reLowCased/ToCase.swift`](https://github.com/xmpr13/relowcased/blob/main/reLowCased/ToCase.swift) (Case conversion), [`reLowCased/ToEncrypt.swift`](https://github.com/xmpr13/relowcased/blob/main/reLowCased/ToEncrypt.swift) (Cipher tool)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_navigation["App navigation"]
  node_app["App entry"]
  node_home["Tool menu<br/>[ContentView.swift]"]
end

subgraph group_text_tools["Text tools"]
  node_case_tool["Case conversion<br/>[ToCase.swift]"]
  node_cipher_tool["Cipher tool<br/>[ToEncrypt.swift]"]
  node_speech_tool["Speech tool<br/>[TextToSpeech.swift]"]
end

subgraph group_device_services["Device services"]
  node_clipboard["iOS clipboard"]
  node_speech_engine["Speech synthesizer"]
end

node_user(("User"))

node_user -->|"launches"| node_app
node_app -->|"shows"| node_home
node_home -->|"opens"| node_case_tool
node_home -->|"opens"| node_cipher_tool
node_home -->|"opens"| node_speech_tool
node_case_tool -->|"copies result"| node_clipboard
node_cipher_tool -->|"copies result"| node_clipboard
node_speech_tool -->|"speaks text"| node_speech_engine

click node_app "https://github.com/xmpr13/relowcased/blob/main/reLowCased/reLowCasedApp.swift"
click node_home "https://github.com/xmpr13/relowcased/blob/main/reLowCased/ContentView.swift"
click node_case_tool "https://github.com/xmpr13/relowcased/blob/main/reLowCased/ToCase.swift"
click node_cipher_tool "https://github.com/xmpr13/relowcased/blob/main/reLowCased/ToEncrypt.swift"
click node_speech_tool "https://github.com/xmpr13/relowcased/blob/main/reLowCased/TextToSpeech.swift"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_app,node_home,node_user toneBlue
class node_case_tool,node_cipher_tool,node_speech_tool toneAmber
class node_clipboard,node_speech_engine toneMint
```

## Components

### App navigation

- [App entry](https://github.com/xmpr13/relowcased/blob/main/reLowCased/reLowCasedApp.swift): `reLowCased/reLowCasedApp.swift`
- [Tool menu](https://github.com/xmpr13/relowcased/blob/main/reLowCased/ContentView.swift): `reLowCased/ContentView.swift`

### Text tools

- [Case conversion](https://github.com/xmpr13/relowcased/blob/main/reLowCased/ToCase.swift): `reLowCased/ToCase.swift`
- [Cipher tool](https://github.com/xmpr13/relowcased/blob/main/reLowCased/ToEncrypt.swift): `reLowCased/ToEncrypt.swift`
- [Speech tool](https://github.com/xmpr13/relowcased/blob/main/reLowCased/TextToSpeech.swift): `reLowCased/TextToSpeech.swift`

### Device services

- **iOS clipboard**
- **Speech synthesizer**

### Other components

- **User**

## Connections

- User → App entry: launches (evidence: `README.md`)
- App entry → Tool menu: shows (evidence: `reLowCased/reLowCasedApp.swift`)
- Tool menu → Case conversion: opens (evidence: `reLowCased/ContentView.swift`)
- Tool menu → Cipher tool: opens (evidence: `reLowCased/ContentView.swift`)
- Tool menu → Speech tool: opens (evidence: `reLowCased/ContentView.swift`)
- Case conversion → iOS clipboard: copies result (evidence: `reLowCased/ToCase.swift`)
- Cipher tool → iOS clipboard: copies result (evidence: `reLowCased/ToEncrypt.swift`)
- Speech tool → Speech synthesizer: speaks text (evidence: `reLowCased/TextToSpeech.swift`)
