An open API service indexing awesome lists of open source software.

https://github.com/kartiknagar333/ctabusiosapp

iOS app for browsing CTA bus routes and real-time arrival predictions, built with SwiftUI, Storyboards & Auto Layout
https://github.com/kartiknagar333/ctabusiosapp

async-await autolayout-constraints cta-api ios-app json-api networking storyboard swift uikit urlsession

Last synced: 9 days ago
JSON representation

iOS app for browsing CTA bus routes and real-time arrival predictions, built with SwiftUI, Storyboards & Auto Layout

Awesome Lists containing this project

README

        

# CTABusiOSApp
An iOS application written in Swift that lets you browse Chicago Transit Authority (CTA) bus routes, view stops for a selected route, and see real-time arrival predictions.

## Features

- **Home Screen** – Browse all CTA bus routes.
- **Stop Screen** – View all stops for the selected route.
- **Prediction Screen** – See real-time arrival predictions for the next buses.

## Built With

- **SwiftUI**
Declarative UI for most views and navigation.

- **UIKit → Storyboards & Auto Layout**
Legacy screens built in Interface Builder using Storyboard scenes, with Auto Layout constraints to handle dynamic sizing and orientation changes.

- **Foundation → URLSession**
Native networking via `async/await` for calling the CTA API.

- **Foundation → JSONDecoder & Codable**
JSON parsing into Swift model structs.

## Setup
- Obtain an API key from [CTA Bus](https://www.ctabustracker.com/account) Tracker.
- Chanage with Your API KEY with APIKEY word in the files.

## ScreenShots
- **HomeScreen [Routes]**


Home


- **StopScreen**


Home


- **PredicationBusScreen**


Home