{"id":16322347,"url":"https://github.com/maxxfrazer/arkit-focusnode","last_synced_at":"2025-03-20T22:31:27.103Z","repository":{"id":56911550,"uuid":"160606205","full_name":"maxxfrazer/ARKit-FocusNode","owner":"maxxfrazer","description":"FocusSquare class taken straight from Apple's ARKit examples and packed up for anyone to use with ease.","archived":false,"fork":false,"pushed_at":"2019-09-13T09:32:34.000Z","size":4308,"stargazers_count":53,"open_issues_count":1,"forks_count":10,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-12-06T21:36:33.567Z","etag":null,"topics":["apple","arkit","augmented-reality","cocoapods","focussquare","ios","scenekit","swift"],"latest_commit_sha":null,"homepage":"","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":"2018-12-06T02:22:32.000Z","updated_at":"2024-11-04T10:39:25.000Z","dependencies_parsed_at":"2022-08-21T03:20:11.822Z","dependency_job_id":null,"html_url":"https://github.com/maxxfrazer/ARKit-FocusNode","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxxfrazer%2FARKit-FocusNode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxxfrazer%2FARKit-FocusNode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxxfrazer%2FARKit-FocusNode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxxfrazer%2FARKit-FocusNode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maxxfrazer","download_url":"https://codeload.github.com/maxxfrazer/ARKit-FocusNode/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244703856,"owners_count":20496188,"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":["apple","arkit","augmented-reality","cocoapods","focussquare","ios","scenekit","swift"],"created_at":"2024-10-10T22:50:37.905Z","updated_at":"2025-03-20T22:31:26.646Z","avatar_url":"https://github.com/maxxfrazer.png","language":"Swift","readme":"# FocusNode\n\nThe root class here uses a class I found in Apple's documentation for ARKit apps that I wanted to have easy to use myself, and thought others would benefit from it too.\n\n[![Actions Status](https://github.com/maxxfrazer/ARKit-FocusNode/workflows/build/badge.svg)](https://github.com/maxxfrazer/ARKit-FocusNode/actions)\n[![Version](https://img.shields.io/cocoapods/v/FocusNode.svg)](https://cocoapods.org/pods/FocusNode)\n[![License](https://img.shields.io/cocoapods/l/FocusNode.svg)](https://cocoapods.org/pods/FocusNode)\n[![Platform](https://img.shields.io/cocoapods/p/FocusNode.svg)](https://cocoapods.org/pods/FocusNode)\n[![Swift Package Manager](https://img.shields.io/badge/SwiftPM_📦-v2.0.2-orange.svg?style=flat)](https://github.com/apple/swift-package-manager)\n[![Swift 5.0](https://img.shields.io/badge/Swift-5.0-orange.svg?style=flat)](https://swift.org/)\n\n![FocusNode Example 1](https://github.com/maxxfrazer/ARKit-FocusNode/blob/master/media/FocusNode-Example1.gif)\n\n[The Example](./Example) looks identical to the above GIF.\n\n[Medium Article V1 of this CocoaPod](https://medium.com/@maxxfrazer/arkit-pods-focusnode-46343cffe7fe)\n\n\nIt was found inside the downloadable project on the following page:\nhttps://developer.apple.com/documentation/arkit/handling_3d_interaction_and_ui_controls_in_augmented_reality\n\nI've added the license from that project to this repository.\n\nFor a similar object to place into a RealityKit scene, try the [FocusEntity Repository](https://github.com/maxxfrazer/FocusEntity).\n\n## Minimum Requirements\n  - Swift 5.0\n  - iOS 11.3\n\n## Installation\n\n### Swift Package Manager\n\nAdd the URL of this repository to your Xcode 11+ Project and select version 2.0+\n`https://github.com/maxxfrazer/ARKit-FocusNode.git`\n\n### CocoaPods\nInclude this pod in your Podfile like so:\n\n```ruby\npod 'FocusNode'\n```\n---\n## Usage\n\nSee the [Example](./Example) for a full working example as can be seen in the image above\n\n### V2\n\nFollow steps in [V1](v1), and then whatever you have as your `sceneView` class, for example `ARSCNView`, add the protocol of `ARSmartHitTest` to it like the following:\n```swift\nextension ARSCNView: ARSmartHitTest {}\n```\n\n### V1\nImport `FocusNode` to your .swift file and add it to your scene as so:\n\n```swift\nlet focusNode = FocusSquare()\nsceneView.scene.rootNode.addChildNode(self.focusNode)\nfocusNode.viewDelegate = sceneView\n```\n\nCheck out the Example project or message me on GitHub or twitter if it's unclear.\n\n\nI DID NOT WRITE A MAJORITY OF THIS CODE MYSELF, MOST OF IT WAS TAKEN DIRECTLY FROM APPLE'S EXAMPLES\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxxfrazer%2Farkit-focusnode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaxxfrazer%2Farkit-focusnode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxxfrazer%2Farkit-focusnode/lists"}