forked from shadowfacts/Tusker
parent
bcf2a2f026
commit
145ffbfcf0
|
@ -320,13 +320,13 @@ class CustomAlertActionsView: UIControl {
|
||||||
actionButtons[currentSelectedActionIndex].backgroundColor = nil
|
actionButtons[currentSelectedActionIndex].backgroundColor = nil
|
||||||
}
|
}
|
||||||
#if !os(visionOS)
|
#if !os(visionOS)
|
||||||
|
if selectedButton != nil {
|
||||||
if #available(iOS 17.5, *) {
|
if #available(iOS 17.5, *) {
|
||||||
let view = selectedButton!.element
|
generator.selectionChanged(at: recognizer.location(in: generator.view))
|
||||||
let location = convert(CGPoint(x: view.bounds.midX, y: view.bounds.midY), from: view)
|
|
||||||
generator.selectionChanged(at: location)
|
|
||||||
} else {
|
} else {
|
||||||
generator.selectionChanged()
|
generator.selectionChanged()
|
||||||
}
|
}
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if let showPressedMenuWorkItem {
|
if let showPressedMenuWorkItem {
|
||||||
|
|
Loading…
Reference in New Issue