{"id":17540150,"url":"https://github.com/kiliankoe/headingindicator","last_synced_at":"2025-04-23T22:27:11.952Z","repository":{"id":68719045,"uuid":"349689722","full_name":"kiliankoe/HeadingIndicator","owner":"kiliankoe","description":"SwiftUI view that points towards a specific coordinate","archived":false,"fork":false,"pushed_at":"2023-03-23T15:52:42.000Z","size":6,"stargazers_count":19,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-24T05:17:14.210Z","etag":null,"topics":["compass","heading","swift-package","swiftui"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kiliankoe.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-03-20T10:10:39.000Z","updated_at":"2024-08-26T22:16:14.000Z","dependencies_parsed_at":"2024-06-11T19:17:14.480Z","dependency_job_id":null,"html_url":"https://github.com/kiliankoe/HeadingIndicator","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kiliankoe%2FHeadingIndicator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kiliankoe%2FHeadingIndicator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kiliankoe%2FHeadingIndicator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kiliankoe%2FHeadingIndicator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kiliankoe","download_url":"https://codeload.github.com/kiliankoe/HeadingIndicator/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250525418,"owners_count":21445058,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["compass","heading","swift-package","swiftui"],"created_at":"2024-10-20T22:08:32.614Z","updated_at":"2025-04-23T22:27:11.934Z","avatar_url":"https://github.com/kiliankoe.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🧭 Heading Indicator\n\nA µPackage for displaying a SwiftUI view that automatically rotates to always point towards a specified coordinate. It's like a compass, only\nthat it points wherever you like.\n\n## Usage\n\nYou'll need an observed object that publishes location changes and current heading information, specifically you'll likely want to implement\nthe following in your `CLLocationManagerDelegate`:\n\n* `func locationManager(_ manager: CLLocationManager, didUpdateLocations locations: [CLLocation])`\n* `func locationManager(_ manager: CLLocationManager, didUpdateHeading newHeading: CLHeading)`\n\nThen just create a new `HeadingIndicator` view, tell it where to point and set how it should display. Please make sure that the view\npoints up by default, otherwise it won't be rotated correctly.\n\n```swift\nimport HeadingIndicator\n\nHeadingIndicator(\n    currentLocation: /* The device's current location. */,\n    currentHeading: /* The device's current heading. */,\n    targetLocation: /* The location to point to. */\n) {\n    Image(systemName: \"arrow.up.circle\")\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkiliankoe%2Fheadingindicator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkiliankoe%2Fheadingindicator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkiliankoe%2Fheadingindicator/lists"}