Я хочу объявить эту константу:
let simultaneousGestures: [(UIGestureRecognizer.Type, UIGestureRecognizer.Type)] =
[(UIPanGestureRecognizer, UIPinchGestureRecognizer),
(UIPanGestureRecognizer, UIRotationGestureRecognizer),
(UIPinchGestureRecognizer, UIRotationGestureRecognizer),
(UIPinchGestureRecognizer, UIPanGestureRecognizer),
(UIRotationGestureRecognizer, UIPanGestureRecognizer),
(UIRotationGestureRecognizer, UIPinchGestureRecognizer)
]
Но я получаю эту ошибку:
Cannot convert value of type '(UIPanGestureRecognizer, UIPinchGestureRecognizer).Type' to expected element type '(UIGestureRecognizer.Type, UIGestureRecognizer.Type)'
Как мне этого добиться?