Skip to content

deepanshubajaj/TechInventory-Hive.ai-Work

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tech Inventory - iOS App

( Interview Assignment - Hive.ai by Chatous Technologies Pvt. Ltd. )

Company Logo


Swift Badge Platform Badge UIKit Badge Architecture Badge License Badge Last Commit GitHub Stars


Tech Inventory (Hive.ai) is a lightweight iOS assignment app for Hive.ai by Chatous Technologies Pvt. Ltd.. It demonstrates a paginated photo grid using UIKit, backed by a simple networking layer with URLSession.

The app fetches images from the public Lorem Picsum API and displays them in a UICollectionView. Tapping an item opens the image’s source URL in an in-app Safari view (SFSafariViewController).


✨ Features

  • Grid UI: 3-column photo grid with responsive cell sizing
  • Pagination: Infinite scrolling (loads next page near the bottom)
  • Details: Tap an item to open its source URL in-app
  • Loading State: Activity indicator while fetching pages

📦 Requirements

  • iOS 18.5+ (deployment target in Hive.xcodeproj — change in Xcode if needed)
  • Xcode 16.4+ (project created with Tools Version 16.4)
  • Swift 5.0

⛓ Project Structure

TechInventory-Hive.ai-Work
.
├── Hive                   # Main iOS app target
│   ├── ViewController.swift
│   ├── ImageService.swift
│   ├── ImageModel.swift
│   ├── ImageCell.swift
│   ├── HeaderView.swift
│   ├── Assets.xcassets
│   └── Base.lproj         # Storyboards (Main, LaunchScreen)
├── HiveTests              # Unit tests
├── HiveUITests            # UI tests
├── Hive.xcodeproj
└── LICENSE

🛠️ Installation

  1. Clone the repository:

    git clone https://github.com/deepanshubajaj/TechInventory-Hive.ai-Work.git
  2. Open in Xcode:

    open Hive.xcodeproj
  3. Build and run on a simulator or device (Scheme: Hive).


🧪 Running Tests

From Xcode: Product → Test

From the command line:

xcodebuild test -project Hive.xcodeproj -scheme Hive -destination 'platform=iOS Simulator,name=iPhone 16'

If the destination name doesn’t exist on your machine, list available simulators and pick one:

xcrun simctl list devices

🌐 API

  • Image list: https://picsum.photos/v2/list?page={page}&limit=10
  • No API key required
  • Lorem Picsum website: https://picsum.photos/

App Look B


🎨 App Look:

App Look B

*App snapshot in the simulator.*


🖼️ Screenshots:

Splash Screen 0D

*Splash screen displayed upon app launch.*

Main Screen 1D Main Screen 2D Main Screen 3D

*Screenshots of the Tech Inventory App showing different screens*


📱 App Icon:

App Icon

*The App Icon reflects the Tech Inventory Look*


🚀 Video Demo:

Here’s a short video showcasing the app's functionality:

Working App 1

🎥 Watch Working Video


🤝 Contributing

Thank you for your interest in contributing to this project!
I welcome contributions from the community.

  • You are free to use, modify, and redistribute this code under the terms of the Apache-2.0 License.
  • If you'd like to contribute, please open an issue or submit a pull request.
  • All contributions will be reviewed and approved by the author — Deepanshu Bajaj.

📌 How to Contribute

To contribute:

  1. Fork the repository.

  2. Create a new branch:

    git checkout -b feature/your-feature-name
  3. Commit your changes:

    git commit -m 'Add your feature'
  4. Push to the branch:

    git push origin feature/your-feature-name
  5. Open a pull request.


📃 License:

This project is licensed under the Apache-2.0 License.
You are free to use this project for personal, educational, or commercial purposes — just make sure to provide proper attribution.

Clarification: Commercial use includes, but is not limited to, use in products,
services, or activities intended to generate revenue, directly or indirectly.


📩 Contact:

You can reach out to me here.

About

Tech Inventory (Hive.ai) is a lightweight iOS app showcasing a paginated photo grid built with UIKit, using a simple URLSession-based networking layer.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages