Compare commits

...

2 Commits

Author SHA1 Message Date
Shadowfacts bab0dd3294 Bump HTMLStreamer
Closes #454
2024-02-28 18:00:16 -05:00
Shadowfacts 8a3acc6889 Use UIControl.performPrimaryAction instead of SPI on iOS 17.4 2024-02-28 12:20:55 -05:00
2 changed files with 8 additions and 4 deletions

View File

@ -2968,7 +2968,7 @@
repositoryURL = "https://git.shadowfacts.net/shadowfacts/HTMLStreamer.git"; repositoryURL = "https://git.shadowfacts.net/shadowfacts/HTMLStreamer.git";
requirement = { requirement = {
kind = exactVersion; kind = exactVersion;
version = 0.2.0; version = 0.2.1;
}; };
}; };
D63CC700290EC0B8000E19DE /* XCRemoteSwiftPackageReference "sentry-cocoa" */ = { D63CC700290EC0B8000E19DE /* XCRemoteSwiftPackageReference "sentry-cocoa" */ = {

View File

@ -332,10 +332,14 @@ class CustomAlertActionsView: UIControl {
if action.handler == nil, if action.handler == nil,
case .menu(_) = action.style, case .menu(_) = action.style,
let interaction = button.contextMenuInteraction { let interaction = button.contextMenuInteraction {
if #available(iOS 17.4, *) {
button.performPrimaryAction()
} else {
let selector = NSSelectorFromString(["Location:", "At", "Menu", "present", "_"].reversed().joined()) let selector = NSSelectorFromString(["Location:", "At", "Menu", "present", "_"].reversed().joined())
if interaction.responds(to: selector) { if interaction.responds(to: selector) {
interaction.perform(selector, with: recognizer.location(in: button)) interaction.perform(selector, with: recognizer.location(in: button))
} }
}
} else { } else {
action.handler?() action.handler?()
self.dismiss() self.dismiss()