How shankeerthans/cricapp works
Cricapp is an iOS app for browsing international cricket teams and their players. The main flow opens a searchable team list, loads team data when the local list is empty, and navigates to a searchable player list that loads players for the selected team. API responses are decoded and saved with associated images in Core Data; SwiftUI rows present the stored records. The README documents these browsing capabilities and RapidAPI configuration. Some persistence and fetch-helper implementations were read but not excerpted, so their internal call relationships are omitted.
Main entry points: URLSessionManager.swift Session manager · TeamsListView.swift Team browser · PlayersListView.swift Player browser · CricappApp.swift App entry
Components 18
App and interface
- App entry
Cricapp/CricappApp.swift - Root view
Cricapp/ContentView.swift - View model
Cricapp/ViewModel/ViewModel.swift - Team browser
Cricapp/Views/TeamsListView.swift - Team row
Cricapp/Views/TeamView.swift - Player browser
Cricapp/Views/PlayersListView.swift - Player row
Cricapp/Views/PlayerView.swift
API access
- Session manager
Cricapp/Managers/URLSessionManager.swift - API requests
Cricapp/Models/APIModel.swift - JSON decoder
Cricapp/Models/Coder.swift
Cricket data
- Team response data
Cricapp/Models/DataModel.swift - Team records
Cricapp/CoreData/Team+CoreDataProperties.swift - Player records
Cricapp/CoreData/Player+CoreDataProperties.swift
Local persistence
- Fetched objects
Cricapp/CoreData/FetchObjects.swift - Persistence setup
Cricapp/CoreData/Persistence.swift - Core Data store
Cricapp/Cricapp.xcdatamodeld/Cricapp.xcdatamodel/contents
Other components
- App user
- RapidAPI
Connections 22
- App user → App entry: opens
- App entry → Root view: launches
Cricapp/CricappApp.swift - App entry → Persistence setup: uses context
Cricapp/CricappApp.swift - Root view → Team browser: shows
Cricapp/ContentView.swift - Root view → View model: creates
Cricapp/ContentView.swift - Team browser → Fetched objects: queries
Cricapp/Views/TeamsListView.swift - Team browser → Team row: renders
Cricapp/Views/TeamsListView.swift - Team browser → Player browser: navigates
Cricapp/Views/TeamsListView.swift - Team browser → Session manager: fetches teams
Cricapp/Views/TeamsListView.swift - Player browser → Fetched objects: queries
Cricapp/Views/PlayersListView.swift - Player browser → Player row: renders
Cricapp/Views/PlayersListView.swift - Player browser → Session manager: fetches players
Cricapp/Views/PlayersListView.swift - Session manager → API requests: builds request
Cricapp/Managers/URLSessionManager.swift - Session manager → RapidAPI: sends HTTP
Cricapp/Managers/URLSessionManager.swift - Session manager → JSON decoder: decodes JSON
Cricapp/Managers/URLSessionManager.swift - Session manager → Team records: creates teams
Cricapp/Managers/URLSessionManager.swift - Session manager → Player records: creates players
Cricapp/Managers/URLSessionManager.swift - Team records → Session manager: fetches images
Cricapp/CoreData/Team+CoreDataProperties.swift - Player records → Session manager: fetches images
Cricapp/CoreData/Player+CoreDataProperties.swift - Persistence setup → Core Data store: configures
- Team records → Core Data store: persists
- Player records → Core Data store: persists