Skip to content

Instantly share code, notes, and snippets.

View kalpeshjethva18's full-sized avatar
🎯
Focusing

kalpesh jethva kalpeshjethva18

🎯
Focusing
  • Ahmedabad, Gujarat, India
View GitHub Profile
@kalpeshjethva18
kalpeshjethva18 / ISImageView.swift
Created May 25, 2021 14:45 — forked from ppth0608/ISImageView.swift
How to add gestureRecognizer like Instagram pinch+pan gesture
import UIKit
public class ISImageView: UIImageView {
@IBInspectable public var isInteractable: Bool = false {
didSet {
guard oldValue != isInteractable else { return }
if isInteractable {
setupGesture()
cellForTarget(superview: superview)?.clipsToBounds = false