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!
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.
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.
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.
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.
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.
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.
This project is licensed under the MIT License. See the LICENSE file for details.
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.