ejeinc / MetalScope

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

Add isDeviceMotionEnabled & isPanGestureEnabled #34

Open junpluse opened 7 years ago

junpluse commented 7 years ago

Summary

Provides options to disable device motions and pan gestures in PanoramaView.

Detail

Add following new properties to PanoramaView:

// PanoramaView.swift

public var isDeviceMotionEnabled: Bool { get set }

public var isPanGestureEnabled: Bool { get set }

Also make PanoramaPanGestureManager public to allow detailed settings of pan gesture.

// PanoramaView.swift

public lazy var panGestureManager: PanoramaPanGestureManager { get set }