Skip to content

About

SwiftUI audiometry app for iPhone and iPad

Topics

Resources

Stars

2 stars

Watchers

1 watching

Forks

Latest commit

 

History

13 Commits

Folders and files

Repository files navigation

Audiometry for iOS and iPadOS

Platform Swift Xcode

SwiftUI audiometry app for iPhone and iPad

Audiometry is a SwiftUI application for capturing patient hearing test data, calculating hearing-loss results, and printing patient reports on iPhone and iPad. Patient data is stored locally as JSON through PatientDataStore.

iPad

Requirements

  • Xcode 26 or 27
  • Swift 6
  • iOS 18 or later
  • iPhone or iPad device or simulator

Features

  • Patient data entry for name, age, and occupation
  • Audiometric input for both ears at 500, 1000, 2000, 4000, and 8000 Hz
  • Hearing loss assessment calculations
  • SAL and ELI index calculations with categorized results
  • Patient save, update, delete, search, and previous/next navigation
  • Patient report preview and AirPrint printing
  • Localized UI in English, Spanish, French, and Italian

Data storage

Patient records are saved to patients.json in the app's Application Support directory. On first launch, the bundled sample data is copied there if no patient database exists yet.

Project structure

  • Audiometry/AudiometryApp.swift — SwiftUI app entry point
  • Audiometry/Views/ContentView.swift — patient editing and calculation UI
  • Audiometry/Model/PatientDataStore.swift — JSON-backed persistence
  • Audiometry/Model/PatientNavigationView.swift — patient actions, search, navigation, and language menu
  • Audiometry/Model/AudiometryCalculations.swift — hearing-loss, SAL, and ELI calculations
  • Audiometry/<language>.lproj/Localizable.strings — localized strings

Build

Open Audiometry.xcodeproj in Xcode, select the Audiometry scheme, and choose an iPhone or iPad device or simulator destination.

Command-line simulator build:

xcodebuild -project Audiometry.xcodeproj -scheme Audiometry -destination 'generic/platform=iOS Simulator' build

The project has no separate test target.

About

SwiftUI audiometry app for iPhone and iPad

Topics

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Contributors

Languages