Coder Social home page Coder Social logo

ios-drection-pointer's Introduction

iOS Directional Pointer App

This is a simple iOS app built using SwiftUI that acts as a directional pointer to a specific location based on the user's phone orientation and current location.

Getting Started

Follow the instructions below to clone and set up the project on your local machine.

Prerequisites

  • Xcode (minimum version Xcode 14)
  • An iOS device or simulator running iOS 14 or later

Clone the Repository

  1. Open Terminal.

  2. Change the current working directory to the location where you want to clone the project.

  3. Run the following command to clone the repository:

    git clone https://github.com/Armand-OW/ios-directional-pointer.git
    

Open the Project in Xcode

  1. Open Xcode.

  2. Click on "Open a project or file."

  3. Navigate to the directory where you cloned the repository and select the ios-directional-pointer.xcodeproj file.

Configure Permissions

  1. Open the Info.plist file in the project navigator.

  2. Add the following entries to the Info.plist file to request the necessary permissions:

  • NSLocationWhenInUseUsageDescription: Provide a description of why you need location access.
  • NSMotionUsageDescription: Provide a description of why you need motion access.

Run the App

  1. Connect your iOS device to your Mac or choose a simulator in Xcode.

  2. Select the target device/simulator from the scheme dropdown in the Xcode toolbar.

  3. Click the "Run" button (or press Cmd + R) to build and run the app on your selected device/simulator.

Usage

  • Update the SearchLatitude and SearchLongitude placeholders in the LocationManager class to your desired latitude and longitude.
  • The app will display the calculated direction angle and a rotating arrow icon. *The direction angle is calculated based on the user's phone orientation and the target location.
  • The arrow icon will rotate to point in the direction of the target location.

License

This project is licensed under the MIT License.

Acknowledgements

This project is a simplified example and might require further enhancements for production use.

ios-drection-pointer's People

Contributors

armand-ow 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.