Coder Social home page Coder Social logo

da-ios_p4_exercise-2's Introduction

SwiftUI User List

User List App

Table of Contents

Introduction

The SwiftUI User List is a modern iOS application built with SwiftUI. It provides users with the ability to view a list of users and their details. This README will guide you through the app's features, how to get started, and its underlying MVVM architecture.

Features

  • User List: View a list of users with their names and profile pictures.
  • User Details: Select a user from the list to view their detailed information, including their name and date of birth.
  • Format selection: You can choose between list and grid display.
  • Reload data: You can reload the displayed data.
  • Infinite scroll: You can scroll down infinitely.

Todo

  • Extract logic to a viewModel: The main view contains to much logic, you should extract it to a viewModel, and unit test it.
  • Extract view components from main view: The main view contains to much view logic, you should split it in several sub view components.

MVVM Architecture (Model - View - ViewModel)

View

Responsible of managing the view state. No data/data-logic is handled here.

ViewModel

This is where the magic happens. This layer is listening for events from above through Inputs and transform them to Outputs. Thanks to this separation, each layer can communicates with each others without having a tight coupling of responsabilities.

Repository (Model)

Responsible of providing Data, by hiding where it comes from. In this project it's basicaly provided by FileManager but it could be either from Network etc..

Getting Started

Prerequisites

  • Xcode 14 or later.
  • iOS 16 or later.

Installation

  1. Clone the repository to your local machine:
git clone https://github.com/OpenClassrooms-Student-Center/DA-iOS_P4_exercise-2.git
  1. Open the project in Xcode.
  2. Build and run the project on your preferred simulator or physical device.

Usage

Launch the app and play with it ๐Ÿ’ช

da-ios_p4_exercise-2's People

Contributors

bbloch-veepee avatar

Watchers

 avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.