ios Support

This commit is contained in:
Michael authored and GitHub committed 2023-07-08 18:15:36 +02:00
1 parent a5fe6cc80b
commit da8bcdd2dd
3 files changed
+15

No files matched your search

+2
View File
@@ -15,4 +15,6 @@ double screenScale();
void showLoadingIndicator();
void hideLoadingIndicator();
void hapticFeedback();
}
+7
View File
@@ -43,4 +43,11 @@ void hideLoadingIndicator()
[indicator removeFromSuperview];
indicator = nil;
}
void hapticFeedback()
{
UIImpactFeedbackGenerator *hapticGen = [[UIImpactFeedbackGenerator alloc] initWithStyle:(UIImpactFeedbackStyleLight)];
[hapticGen impactOccurred];
hapticGen = NULL;
}
}