{"id":16322357,"url":"https://github.com/maxxfrazer/rkpointpin","last_synced_at":"2025-03-20T22:31:30.001Z","repository":{"id":63917749,"uuid":"252277095","full_name":"maxxfrazer/RKPointPin","owner":"maxxfrazer","description":"A UIView which points at a RealityKit Entity from screenspace","archived":false,"fork":false,"pushed_at":"2020-04-29T08:44:39.000Z","size":6639,"stargazers_count":48,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-12-06T21:36:49.832Z","etag":null,"topics":["ar","arkit","arkit3","augmented","augmented-reality","ios","realitykit","swift","swiftpm"],"latest_commit_sha":null,"homepage":null,"language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/maxxfrazer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-04-01T20:14:32.000Z","updated_at":"2024-10-28T11:53:36.000Z","dependencies_parsed_at":"2023-01-14T13:45:14.807Z","dependency_job_id":null,"html_url":"https://github.com/maxxfrazer/RKPointPin","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxxfrazer%2FRKPointPin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxxfrazer%2FRKPointPin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxxfrazer%2FRKPointPin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxxfrazer%2FRKPointPin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maxxfrazer","download_url":"https://codeload.github.com/maxxfrazer/RKPointPin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244703876,"owners_count":20496193,"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":["ar","arkit","arkit3","augmented","augmented-reality","ios","realitykit","swift","swiftpm"],"created_at":"2024-10-10T22:50:38.843Z","updated_at":"2025-03-20T22:31:29.441Z","avatar_url":"https://github.com/maxxfrazer.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RKPointPin\n\nRKPointPin is a UIView which sticks to an `ARView` and points at a chosen entity within the scene, with options to hide the pin when near the center of the screen, or perform any custom actions.\n\n[![Swift Package Manager](https://img.shields.io/badge/Swift_Package_Manager-v1.0.0-orange.svg?style=flat)](https://github.com/apple/swift-package-manager)\n[![Swift 5.2](https://img.shields.io/badge/Swift-5.2-orange.svg?style=flat)](https://swift.org/)\n\n![RKPointPin Example](media/pin_512.gif)\n\n## Minimum Requirements\n- Swift 5.2\n- iOS 13.0 (RealityKit)\n- Xcode 11.4\n\n### Swift Package Manager\n\nAdd the URL of this repository to your Xcode 11+ Project.\n\n`https://github.com/maxxfrazer/RKPointPin.git`\n\n\n## Usage\n\nSee the [Example](./RKPointPin+Example) for a full working example as can be seen in the GIF above\n\nOnce you create your `RKPointPin`, add it to your ARView, and then choose your target `Entity`.\n\nDoing so may look similar to this:\n```swift\nlet rkPin = RKPointPin()\nself.arView.addSubview(rkPin)\nrkPin.targetEntity = boxEntity\n```\n\nBy default the RKPointPin will be visible all the time, but if you want the pin to hide when in the center, set the `focusPercentage` to a value ranging from 0 to 1. If  `focusPercentage` is set to 1, then the pin will only appear when the `targetEntity` is outside of the view, as everything from the edges inwards is considered the focus area.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxxfrazer%2Frkpointpin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaxxfrazer%2Frkpointpin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxxfrazer%2Frkpointpin/lists"}