An extensive iOS Proof of Concept (POC) workspace and comprehensive Data Structures & Algorithms sandbox implemented in Swift and Objective-C by Rahul Goel.
- About the Project
- Repository Structure
- Key Modules & Architecture
- System Diagrams
- Getting Started
- Testing
- Documentation & AI Conventions
iOSPOC serves a dual purpose:
- iOS Platform & Architecture Playground: Demonstrates foundational and production-grade iOS architectural patterns, custom networking layers, image caching, memory management (ARC/retain cycle prevention), local and push notifications, UI component layouts (AutoLayout, UIStackView, Storyboards), and Objective-C/Swift bridging.
- Competitive Programming & Algorithms Catalog: A organized repository of data structures and LeetCode problem solutions written in Swift across 25 distinct algorithmic categories.
iOSPOC/
├── README.md # Primary project documentation
├── SPECIFICATION.md # Full technical specification document
├── AGENTS.md # AI agent rules & token optimization guidelines
├── Diagrams/ # SVG architecture and sequence diagrams
│ ├── architecture.svg
│ ├── booking_system_em_ios.svg
│ └── invite_sequence.svg
├── iOSPOC.xcodeproj/ # Xcode project configuration
├── iOSPOC/ # Primary source target
│ ├── AppDelegate.swift # App entry point & lifecycle
│ ├── Info.plist # App target metadata
│ ├── Common/ # Shared base classes (TRGBaseViewController)
│ ├── NetworkLayer/ # REST API client & parser enums
│ ├── ImageDownloader/ # Async image cache & downloader
│ ├── MemoryManagement/ # ARC & memory leak prevention demos
│ ├── ObjectiveC/ # Objective-C bridging header & controllers
│ ├── LocalDataStore/ # UserDefaults, Plist, CoreData persistence
│ ├── LocalNotifications/ # Local notification triggers
│ ├── PushNotifications/ # Push notification setup
│ ├── Home/ # MVVM/MVC feature module (C, M, V)
│ ├── Autolayout/ # Programmatic AutoLayout examples
│ ├── StackView/ # UIStackView implementations
│ ├── StoryBoard/ # Interface Builder storyboards & xibs
│ ├── Algorithms/ # Algorithmic & Data Structures library
│ └── Playgrounds/ # Swift Playgrounds
├── iOSPOCTests/ # XCTest unit test suite
└── iOSPOCUITests/ # XCTest UI test suite
Located in iOSPOC/NetworkLayer/:
TRGNetworkAPIManager: Singleton HTTP client usingURLSession.- Provides typed enums for HTTP methods (
TRGRequestType), MIME types (TRGMIMEType), and status codes (TRGHttpStatusCode).
Located in iOSPOC/ImageDownloader/:
TRGImageCacheManager: In-memory caching manager for efficient image downloading and display.
Located in iOSPOC/Home/:
- Structured using clean MVVM / MVC patterns:
C/:HomeViewController.swift,HomeDetailViewController.swiftM/:HomeViewModel.swiftV/:HomeTableViewImageCell.swift,HomeTableCollectionViewCell.swift
Located in iOSPOC/ObjectiveC/:
- Exposes Objective-C classes (
ObjectiveCViewController.h/.m) to Swift using iOSPOC-Bridging-Header.h.
Located in iOSPOC/Algorithms/:
Organized into 25 dedicated topic folders:
- 🟢 Arrays & Matrices: 3Sum, Product of Array Except Self, Pascal's Triangle, Matrix Transformations.
- 🌲 Trees & Graphs: AVL Trees, BST operations, Traversals, BFS, DFS.
- ⚡ Sorting & Searching: Binary Search, Quick Sort, Merge Sort, Heap Sort.
- 📦 Data Structures: Stacks, Queues, Heaps, Tries, Linked Lists, Segment Trees.
- 🧮 Dynamic Programming & Backtracking: N-Queens, Subsets, Memoization problems.
System architecture and flow diagrams are maintained under Diagrams/:
- Architecture Overview:
Diagrams/architecture.svg - Booking Domain Model:
Diagrams/booking_system_em_ios.svg - Invite Sequence Diagram:
Diagrams/invite_sequence.svg
- macOS with Xcode 14.0 or later installed.
- Swift 5.0+ runtime support.
- Clone the repository:
git clone https://github.com/therahulgoel/iOSPOC.git cd iOSPOC - Open the project in Xcode:
open iOSPOC.xcodeproj
- Select your target simulator (e.g. iPhone 15 Pro) and press Cmd + R to build and run.
Run the test suites directly inside Xcode via Cmd + U or execute via command line:
xcodebuild test -scheme iOSPOC -destination 'platform=iOS Simulator,name=iPhone 15 Pro'- SPECIFICATION.md: Full technical documentation of repository components.
- AGENTS.md: Rules and token optimization guidelines for AI coding assistants.
Rahul Goel — iOS Developer & Software Engineer