Physical Address
304 North Cardinal St.
Dorchester Center, MA 02124
Physical Address
304 North Cardinal St.
Dorchester Center, MA 02124
I’ve a fundamental view controller (UICollectionViewController
) and the cells include a UIImageView
, a UILabel
and a UITableView
.
One thing like this
+--------------------------------------------------------------------+
| |
| +-------------Cell-------------+ +-------------Cell-------------+ |
| | | | | |
| | +-------+ | | +-------+ | |
| | | Picture | Label | | | Picture | Label | |
| | +-------+ | | +-------+ | |
| | | | | |
| | +--------------------------+ | | +--------------------------+ | |
| | | | | | | | | |
| | | TableView | | | | TableView | | |
| | | | | | | | | |
| | +--------------------------+ | | +--------------------------+ | |
| +------------------------------+ +------------------------------+ |
: :
+--------------------------------------------------------------------+
Within the UICollectionViewCell
subclass, I add a UILongPressGestureRecognizer
to the picture view:
@IBOutlet non-public weak var imageView: UIImageView! {
didSet {
let gr = UILongPressGestureRecognizer(goal: self, motion: #selector(self.settingsButtonTouched))
imageView.gestureRecognizers?.append(gr)
}
}
Up to now so good.
If I now faucet on the picture view, the motion will not be triggered, however solely the next textual content seems within the log:
[SystemGestureGate] <0x129f2ab10> Gesture: System gesture gate timed out.
I solely discovered references to SwiftUI, however I do not use that on this app.
Does anybody have any concept what’s inflicting this and extra importantly the best way to clear up it?