我正试图在一个快速应用程序中,在一堆动态生成的swipeGestureRecognizer上实现所有四个方向的UIViews。所以基本上,我希望这些观点中的每一个都能对所有四个方向的滑动做出反应。这是我的密码
import UIKit
class ViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view, typically from a nib.
当用户点击图片时,我如何显示图像?
func configureMediaMessageImageView(_ imageView: UIImageView, for message: MessageType, at indexPath: IndexPath, in messagesCollectionView: MessagesCollectionView) {
switch message.kind {
case .photo(let photoItem):
/// if we don't have a ur