ahkohd / tauri-macos-spotlight-example

An example macOS Spotlight app built with Tauri
MIT License
148 stars 9 forks source link

feat: convert Tauri's NSWindow to NSPanel to create a spotlight app the correct way! #6

Closed ahkohd closed 1 year ago

ahkohd commented 1 year ago

Although the current implementation on our main branch for displaying NSWindow over full-screen apps has been effective, we encountered a setback in the Ventura release due to Apple blocking our workaround. After extensive experimentation over the past week, I have discovered a technical solution: creating an NSPanel from a Tauri NSWindow. By implementing this approach, we can make the spotlight window as intended without using any workarounds or hacks.

Demo

Screen Recording 2023-03-05 at 14 35 57

ahkohd commented 1 year ago

My next objective is to develop a Tauri plugin called tauri-nspanel. This plugin will serve as a valuable tool for creating NSPanels in Tauri's NSWindow, allowing us to streamline the process and enhance our overall workflow.

ahkohd commented 1 year ago

Here is it! https://github.com/ahkohd/tauri-nspanel