Skip to content
tbxarkPublic

About

An AR ruler app can measure length & area

Topics

Resources

Stars

257 stars

Watchers

12 watching

Forks

Latest commit

 

History

23 Commits

Folders and files

Repository files navigation

Ruler

A simple AR ruler app can measure length & area, built with SwiftUI + ARKit

Xcode 26.0+ iOS 15.0+ Swift 5.0+

Requirements

  • Swift 5.0+
  • iOS 15.0+
  • Xcode 26.0+
  • An ARKit capable device (A9+) to run the AR measurement

Architecture

  • SwiftUI app lifecycle (RulerApp) with the UI entirely in SwiftUI (ContentView, SettingView)
  • ARSCNView is embedded via UIViewRepresentable (ARViewContainer) and the AR measurement logic lives in a single observable MeasurementModel
  • SceneKit measuring nodes (LineNode, LineSetNode, FocusSquare, Plane) are shared model/view-logic
  • The old OpenCV dependency was replaced by a pure Swift plane fitting implementation, and ARKit usage uses the modern ARRaycastQuery based API

Preview

  1. Mesure Length
videoplayback.mp4
  1. Mesure Area
videoplayback-2.mp4

Install

This project has no external dependencies — everything is managed natively by Xcode / Swift Package Manager. The old OpenCV (CocoaPods) dependency was replaced by a pure Swift plane fitting implementation, and deprecated ARKit APIs were migrated to the modern ARRaycastQuery based API.

To regenerate the Xcode project, install XcodeGen and run xcodegen generate.

Release History

  • 1.1.0 New UI design

Contribute

We would love for you to contribute to Ruler, check the LICENSE file for more info.

Thanks

ARuler Mesure distance using apple ARKit

Meta

TBXark – @tbxark – tbxark@outlook.com

Distributed under the MIT license. See LICENSE for more information.

https://github.com/TBXark

About

An AR ruler app can measure length & area

Topics

Resources

Stars

257 stars

Watchers

12 watching

Forks

Releases

Packages

Used by

Contributors

Languages