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