# malcommac/SwiftLocation

⚓️ Async/Await CLLocationManager Wrapper for Apple Platforms

Repository: https://github.com/malcommac/SwiftLocation
Canonical: https://ross.abutalabs.com/products/swiftlocation
Language: Swift
License: MIT
License Family: permissive
Topics: location-services, cllocationmanager, swift-library, locationtracking, swift, swiftlang
Last push: 2024-04-24T15:59:46+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 4053, "days_push": 861, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3423, forks 429 (observed 2026-08-28T04:08:03.879784+00:00)

## What it is
SwiftLocation is a lightweight Swift wrapper around Apple's CoreLocation framework built on the async/await concurrency model. It replaces the delegate and completion-block patterns with clean async APIs for location requests, permission handling, region/beacon monitoring, and heading tracking.

## Use cases
- get the user's current location with async/await
- request location permissions in Swift
- continuously monitor user location updates
- monitor significant location changes or visits
- range iBeacons and monitor regions
- track device heading/compass direction
- mock CLLocationManager in unit tests

## When to choose
- you're building an iOS/macOS/watchOS/tvOS app in Swift 5.3+ with structured concurrency
- you want a modern async/await API instead of CLLocationManager delegates
- you need one-shot location, continuous tracking, visits, beacons, or heading monitoring
- you want a testable location layer with a mocked CLLocationManager

## When to avoid
- you need cross-platform (Android/Windows) location support
- your project targets Swift versions or Apple OS versions without async/await support
- you need advanced CoreLocation features the wrapper doesn't expose and prefer calling CoreLocation directly

## Facets
- artifact type: library
- maturity: active
- function: sdk, concurrency
- domain: mobile-development, developer-tools, cross-platform
- platform: -
- tags: corelocation, async-await, location-services, geolocation, beacons, swift-concurrency, ios, macos, swift, watchos, tvos

## Member repositories
- malcommac/SwiftLocation (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:03.879784+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:38:05.839543+00:00, confidence not recorded.
  - readme: https://github.com/malcommac/SwiftLocation (fetched 2026-08-28T04:08:03.879784+00:00, sha f3401942f47c)
- Data as of 2026-08-30T08:39:29.467469+00:00.
