Skip to content

crapthings/HiMirror

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HiMirror

HiMirror is a lightweight macOS menu bar app for live camera mirroring and framing.

What It Does

  • Runs from the menu bar (MenuBarExtra) with a fast camera preview.
  • Supports camera switching for built-in and external cameras.
  • Offers mirror toggle for real-time flipped preview.
  • Supports aspect ratio presets:
    • Original
    • 1:1
    • 4:3
    • 16:9
    • 9:16
  • Supports preview size presets:
    • 1080p
    • 2K
    • 4K
  • Includes UI language switching (English / Chinese), defaulting to English.
  • Releases camera capture when the menu loses focus to reduce privacy indicator noise.

Tech Stack

  • Swift
  • SwiftUI
  • AVFoundation
  • Xcode project (HiMirror.xcodeproj)

Run Locally

  1. Open HiMirror.xcodeproj in Xcode.
  2. Select the HiMirror scheme.
  3. Run the app (Cmd + R).

Permissions

The app needs camera access to show live preview.

App Behavior

  • The app is configured as a menu bar agent app (LSUIElement = YES).
  • Dock icon and app switcher (Alt+Tab / Cmd+Tab) presence are hidden by design.

Project Structure

  • HiMirror/HiMirrorApp.swift: app entry and menu UI
  • HiMirror/CameraManager.swift: camera session/device/mirroring management
  • HiMirror/CameraPreview.swift: AVCaptureVideoPreviewLayer bridge for SwiftUI
  • HiMirror/AppLanguage.swift: language enum and localization keys
  • HiMirror/LanguageDictionary.swift: local language dictionary mappings

License

MIT License. See LICENSE for details.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages