pavlem / homegate_t

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

homegate_t

First checkout the project and start the Homegate_t.xcodeproj file, there are no third party dependencies, so it’s pretty simple. In case you want to build on a real device, add your bundle ID project settings.

User Interface:

  • Just build the app and you will see the loading screen while the home list data is being fetched from the API.
  • After the successful data retrieval, ten homes are shown.
  • In case of any error an alert is presented (turn the internet off and restart the app or try to tap a destination to try it out). Of course, this can be done in much more detail if Reachability class is used, but it would go outside of scope of this test project and it was mentioned to avoid 3rd party libs or other solutions.
  • Everything you see in this project is custom made, so nothing has been copied or used from some other source.
  • To save a favorite home, tap on it and a heart icon will appear. After that, reload the app and it will still be there.
  • Turn the internet off, the app will still function.

Architecture:

  • MMVM-C is used as an app design pattern since it complements Apple's native, out of the box, MVC for UIKit and it's new MVVM in SwiftUI. Coordinator takes the role of presenting the application flow (like push, pop etc.).
  • Networking module is independent and can be implemented anywhere. It is based on Apple's “URLSession” and generics so no third party libs have been used.
  • There is a custom loading screen and alert for the user feedback.
  • Unit tests are made for view models and moc JSON of products list and details, they are just examples
  • Reusable components have been made (like imageview) for illustration purposes.
  • File organisation:
    • App - App related data *Models
    • Views
    • ViewControllers
    • ViewModels
    • Lib - all custom made libraries with the main one being the networking module under “Networking”
    • Resources - storyboards, strings, images

About

License:MIT License


Languages

Language:Swift 100.0%