Giter Club home page Giter Club logo

footprint's Introduction

FootPrint ๐Ÿ‘ฃ ๐Ÿ“ธ

FootPrint is a work-in-progress iOS app built entirely in SwiftUI. It helps you track your walking activity by fetching images from Flickr Search API based on your current location coordinate for every 100 meters you walk. This way, you can view a gallery of photos from places you've been without even having to take out your camera!

๐Ÿ“ฑ Screenshots

Start Activity During Activity After Activity

๐Ÿ— Architecture

The codebase follows the MVVM (Model-View-ViewModel) architecture pattern. The app is split into three main layers: the Presentation layer, the Domain layer, and the Data layer.

Presentation Layer

The Presentation layer consists of SwiftUI views that display data and handle user interactions. The views are connected to their corresponding view models via the @StateObject property wrapper.

Domain Layer

The Domain layer contains the business logic of the app. It includes the ActivityTrackingController class, which is responsible for tracking user walking activity and triggers actions.

Data Layer

The Data layer handles network requests and data storage. It includes the FlickerPhotoDownloader struct, which fetches photos from the Flickr API, and the AsyncImage, handles loading and caching images.

๐ŸŒ Network Layers

The network layer of the app is powered by the URLSession API, which is used to fetch data from the Flickr API. The NetworkHandler class encapsulates the networking logic and maps the response data to any Decodable model using the Combine framework.

๐Ÿงช Test Suits

The codebase also includes a comprehensive test suite using XCTest framework. The tests cover different parts of the app, including the network layer and view models.

๐Ÿ“ License

This project is licensed under the MIT License. See the LICENSE file for details.

๐Ÿ™ Acknowledgements

FootPrint was inspired by the concept of 'PhotoWalking' - a popular activity among photographers. Special thanks to the Flickr API for providing a great source of photos for the app.

footprint's People

Contributors

sa74 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.