Giter Club home page Giter Club logo

mctest's Introduction

SwiftContacts

SwiftContacts is a simple SwiftUI app that allows you to import and display contact information from a JSON file. It leverages Codable to import the data and provides a user-friendly interface to view contact details.

Features

  • Import Data: Contacts are imported using Codable from a JSON file located in the assets folder.
  • Sidebar Navigation: Names of contacts are displayed in a left sidebar, which collapses in compact mode for a better user experience.
  • Detail View: Selecting a contact name in the sidebar displays the contact details in the main view on the right.
  • Unit Tests: Includes unit tests to ensure proper initialization of contact objects and view components.
  • SwiftUI Previews: Functional SwiftUI previews for visual testing and development.
  • Compilable and Runnable: The application can be compiled and run using Xcode.

Getting Started

To run the app:

  1. Clone this repository to your local machine.
  2. Open the project in Xcode.
  3. Build and run the app on a simulator.

Unit Tests

The unit tests ensure the proper functioning of key components of the app:

  • testContactInitialization: Ensures correct initialization of contact objects.
  • testContactDetailsView: Verifies the initialization of the contact details view.
  • testPersonsViewModel: Checks the initial contacts count in the view model.

Screenshots

iPhone Screenshots

iPhone contact List Screen iPhone contact detail screen

iPad Screenshots

iPad landscape mode iPad portrait mode

mctest's People

Contributors

tilak1028-st avatar

Watchers

 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.