Skip to content

sergioAff/github-api-swift

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

GitHub API Swift App

A simple SwiftUI application that allows you to search for GitHub users and view basic profile information. This project demonstrates the use of SwiftUI, Swift Concurrency (async/await), network requests, and clean UI components.

Features • 🔍 Search GitHub users by username • 👤 Display user profile information: • Username • Full Name • Bio • Avatar • Blog URL • Location • Public Repositories • Followers and Following count • 📡 Asynchronous API requests with error handling • 🎨 Clean and responsive SwiftUI interface

Technologies • Swift 5.9 • SwiftUI • URLSession + async/await • MVVM architecture principles (lightweight)

Screenshots IMG_4762

Search Profile IMG_4761

Setup 1. Clone the repository:

git clone https://github.com/sergioAff/github-api-swift.git

2.	Open the project with Xcode:

open github-api-swift.xcodeproj

3.	Run the app on an iOS Simulator or a real device.

Requirements • Xcode 15 or later • iOS 17 or later • Swift 5.9+

Project Structure • Models: User.swift • Services: UserService.swift • Views: HomeView, UserView, SearchComponent • Utilities: Networking error handling

Improvements for the Future • Support for pagination of followers/following • Display user repositories • Better error handling with custom views • Light/Dark mode support improvements

License

This project is licensed under the MIT License.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages