ejeinc / MetalScope

Metal-backed 360° panorama view for iOS
MIT License
324 stars 72 forks source link

`setNeedsResetRotation` is not animated as default #17

Closed junpluse closed 7 years ago

junpluse commented 7 years ago

For clarity, PanoramaView.setNeedsResetRotation(animated:) should not animated as default.

Instead, add new PanoramaView.setNeedsResetRotation(_:) method for Cocoa actions.

// old
resetButton.addTarget(panoramaView, 
                      action: #selector(PanoramaView.setNeedsResetRotation), 
                      for: .touchUpInside)

// new
resetButton.addTarget(panoramaView, 
                      action: #selector(PanoramaView.setNeedsResetRotation(_:)), 
                      for: .touchUpInside)