How lakr233/notchdrop works
Project type and purpose
• NotchDrop is a native macOS desktop application written in Swift (Xcode project).
• Its goal is to turn the MacBook notch into a drag-and-drop file zone, with a small menu-bar component, a notch overlay window, and local persistence (one-day cache).
File structure
• Top-level Xcode project files (NotchDrop.xcodeproj, Info.plist, entitlements).
• Source directory “NotchDrop/” containing:
• App entry points: main.swift, AppDelegate.swift
• UI components: NotchWindow*, NotchWindowController, NotchContentView, NotchMenuView, NotchSettingsView, TrayDrop*
• View model & event logic: NotchViewModel+Events.swift, NotchViewModel.swift, EventMonitor.swift, EventMonitors.swift
• Persistence helper: PublishedPersist.swift
• Extensions for convenience: Ext+FileProvider.swift, Ext+NSAlert.swift, etc.
• Share logic: Share.swift, Share+View.swift
• Resources: assets, localization, helper scripts, privacy docs.
README for additional insights
• Confirms it’s purely client-side (no external backend).
• Highlights integration with menu-bar managers, AirDrop, local caching.
Detail
• Every View and ViewModel class in the UI/logic layers.
• EventMonitor subsystem as a distinct component.
• One-day cache TTL logic in the persistence layer.