Git Product home page Git Product logo

places's Introduction

Places App

Overview

The Places app is a technical assignment for ABN Amro Bank, designed to demonstrate the capability to fetch, display, and interact with location data using the Wikipedia app via deep linking. The app fetches locations from a specified URL, displays them in a list, and allows users to open each location in the Wikipedia app. Additionally, users can manually enter a custom location to open in the Wikipedia app. As a result, a manualy entered location is stored in the list of all locations.

Features

  • Fetch locations from a remote JSON endpoint.
  • Display locations in a list.
  • Open locations in the Wikipedia app via deep linking.
  • Manually enter custom locations to open in the Wikipedia app.
  • Store a manually entered location in a list
  • UI is implemented using SwiftUI

Setup

  1. Clone the Repository:

    git clone https://github.com/vmeansdev/Places.git
    cd Places
  2. Open the Project: Open Places.xcodeproj in Xcode.

  3. Install Dependencies: Run swift package resolve to install dependencies.

  4. Build and Run: Select the target Places and run the app.

Configuration

The app fetches location data from a URL configured in the Places.xcconfig file. Ensure the URL is set correctly:

PLACES_URL = https://raw.githubusercontent.com/abnamrocoesd/assignment-ios/main/locations.json

Usage

  1. Fetch and Display Locations: The app will fetch locations from the specified URL and display them in a list.

  2. Open Location in Wikipedia App: Tap on a location to open it in the Wikipedia app using deep linking.

  3. Enter Custom Location: Navigate to the custom location view, enter a name (optional), and coordinates (latitude and longitude), then tap "Open" to view the location in the Wikipedia app.

Assumptions

  • Only the name of a location is optional; coordinates are required.

Possible future Improvements

  • SwiftLint and SwiftFormat integration
  • Localization support
  • Enhanced color scheme
  • Fonts
  • Some sort of AppHttpKit library for networking (for simplicity there is a direct use of URLSession and as it is quite tricky to mock URLSession and no networking library is implemented/used, for testing I mocked URLProtocol which reads and uses bundled JSON files)

License

This project is licensed under the MIT License.

places's People

Contributors

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