Swift Package Index


A* pathfinding library in Swift.


  • The latest stable release is 2.1.0. Released 5 months ago.
  • The latest beta release is 3.0.0-beta-1. Released over 1 year ago.
  • The last commit to master was 5 months ago.

Swift Version Compatibility

  • 2.1.0 and master
    5.3
    5.2
    5.1
    5.0
    4.2
  • 3.0.0-beta-1
    5.3
    5.2
    5.1
    5.0
    4.2
Full build results

Platform Compatibility

  • 2.1.0, 3.0.0-beta-1, and master
    iOS
    macOS(Intel)
    macOS(ARM)
    Linux
    tvOS
    watchOS
Full build results

A-Star

CircleCI

Protocol oriented A* (A star) pathfinding algorithm implementation in Swift 5 (Playground included).

Add pathfinding to your graph just by implementing the 3 requirements of the Graph protocol.

Playground

  • To use the playground: open AStar.xcodeproj
  • Build the macOS framework (select the AStar macOS targer and press command + b)
  • Click on Playground.playground

Playground

Swift Package Manager

You can now add this package to your project using SPM 🎉

Using Xcode

Xcode 11 has a new interface to include packages into your existing projects.

  • Click FileSwift PackagesAdd Package Dependency...
  • Search for AStar and select this repository.
  • Follow the on screen instructions

Playground

Manualy editing package file

To include it in your package manually, add the following dependency to your Package.swift file.

.package(url: "https://github.com/Dev1an/A-Star.git", .branch("master"))

Use import AStar to access the APIs.