HapticCommunicator is an iOS app for communicating using Morse code through haptic feedback. The project is written in SwiftUI and follows a simple MVVM structure.
- User – full-screen tap area for entering Morse or holding to dictate speech. Swipe up to convert the Morse input to text, or swipe right to insert a space. Speech input is converted to Morse and vibrated for the caregiver.
- Caregiver – type text, convert it to Morse code and hand the device to the user so the message can be played back as vibration.
- Settings – pick haptic speed, preview the selected speed and toggle beep and speech sounds.
Switch between these views using the top tab bar in HomeView
.
The first time you launch the app, an interactive walkthrough explains the main screens. If you'd like to view it again later, open Settings and tap Show Walkthrough Again.
- Open the app and allow speech recognition when prompted.
- In User mode:
- Tap short/long for dots and dashes.
- Swipe up to decode the current sequence.
- Swipe right for a letter gap.
- Hold for a couple seconds to speak instead of tapping.
- In Caregiver mode, enter text and tap Convert to Morse Code. A sheet appears instructing you to hand the device to the user and tap anywhere to play the vibration.
- Open
HapticCommunicator.xcodeproj
in Xcode. - Select the HapticCommunicator scheme.
- Build and run with
⌘R
or from the menu (Product › Run
).