🏃♀️ Getting started
- Open
SwiftARlps.xcodeproj
. - Select a development team in the project settings.
- Build and run on your device.
Point your camera at a surface, wait until it detects a surface and then press one of the buttons to place an object.
Process
👩👦 Pair up with another attendee.🍴 Fork the repository, and optionally create a branch.💡 Think of a feature to add, you can come up with something yourself or choose from the Issues.🎯 Commit and push your work, and create a Pull Request.
🦉 Tips
- Start by looking at the FileDescriptions.md file for a description of what files have which responsibility.
- Choose a simple feature to add, you can add more complexity later.
- Don't worry about the UI too much, just try make something work.
- The units of ARKit is in meters, so be sure you don't place something 200 away
- There are a bunch of icons to choose from in
Icons.xcassets
. - If you want to show a message to the user, you can use the
StatusViewController
with ashowMessage(_: String, autoHide: Bool)
method. - Don't be afraid to remove some code if it blocks your current idea.
- When adding kind of new objects, start by copy-pasting an existing subclass of
SCNNode
(likeCube
) - When doing something with
VirtualObject
s see if you can add it as an extension toSCNNode
📚 Resources
- Handling 3D Interaction and UI Controls in Augmented Reality
- ARKit Framework
- WWDC 2017 - Session 602, Introducing ARKit: Augmented Reality for iOS
- AR Human Interface Guidelines
- Performing Spatial Transformations