fix(ios): remove window parameter from trigger_haptic_feedback function

This commit is contained in:
Clover You
2026-02-16 12:06:11 +08:00
committed by Dawn
parent 8bc5591872
commit 90a9150ac4
+1 -1
View File
@@ -3,7 +3,7 @@ pub mod badge;
/// 触发IOS选择震动反馈
#[tauri::command]
#[cfg(target_os = "ios")]
pub fn trigger_haptic_feedback(window: tauri::Window) -> Result<(), String> {
pub fn trigger_haptic_feedback() -> Result<(), String> {
use objc2::MainThreadMarker;
use objc2_ui_kit::UISelectionFeedbackGenerator;