mirror of
https://github.com/HuLaSpark/HuLa.git
synced 2026-08-28 19:11:16 +08:00
fix(ios): remove window parameter from trigger_haptic_feedback function
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user