ynagatomo / ARStickers

A minimal iOS AR app that puts stickers in the 3d space.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AR Stickers

AppIcon

A minimal iOS AR (Augmented Reality) app that puts stickers in AR scene.

Using the app you can

  • enter notes from the keyboard to create stickers
  • place stickers in 360 degree 3d space around you
  • move stickers with drag gestures

The app provides minimal UI and features to keep the code simple, to clearly show the core logic.

The project;

  • Xcode 13.4
  • Target: iOS / iPadOS 15.0 and later
  • Frameworks: SwiftUI, ARKit, RealityKit2, Core Graphics

It shows;

  • drawing image textures using the Core Graphics framework
  • assigning textures to geometries at runtime
  • utilizing camera/device position and rotation
  • coordination between SwiftUI Views and ARView

You can draw any shape by using the Core Graphics API and use it as the image texture of the virtual object.

Please modify the project to make your own apps. ARKit's world map save / load feature allows you to persist the state of a sticker in 3d space. Or you can use RealityKit's synchronization feature to share stickers among multiple people. I think it would be fun to add the image generated by the text-to-image AI to stickers.

Image GIF

References

MIT License

About

A minimal iOS AR app that puts stickers in the 3d space.


Languages

Language:Swift 100.0%