Awalz / SwiftyCam

A Snapchat Inspired iOS Camera Framework written in Swift
BSD 2-Clause "Simplified" License
2.09k stars 326 forks source link

Blocking scroll in scroll view #110

Open mahajnamahmod opened 7 years ago

mahajnamahmod commented 7 years ago

Putting swiftycam in a view controller with other scroll views blocks scrolling between views(think like snapchat).

tamoyal commented 6 years ago

you can:

  1. fork the repo
  2. publicly expose previewLayer (multiple forks do this so poke around the network graph if you don't know how)
  3. in your viewDidLoad of the SwiftyCamViewController subclass, remove the pan gesture:
    swipeToZoom = false
    previewLayer.removeGestureRecognizer(panGesture)

    Or you can also conform to UIGestureRecognizerDelegate in your subclass and implement logic in the delegate method shouldRecognizeSimultaneouslyWith