//
//  MFTabBarInteractor.h
//  MobileFirstFramework
//
//  Created by Chen, Mingyuan on 5/30/18.
//  Copyright © 2018 Verizon Wireless. All rights reserved.
//
//  This class uses an edge pan gesture to allow percent driven interactive transitioning from one view to another.

#import <UIKit/UIKit.h>

@protocol MFSwipeNavigationProtocol<NSObject>

@optional

// Notifies the delegate we should begin the transition to the left or the right.
- (void)swipeLeft;
- (void)swipeRight;
- (void)updatePercentage:(CGFloat)percentage;

@end

@interface MFTabBarInteractor : UIPercentDrivenInteractiveTransition

// true while panning
@property (nonatomic) BOOL panning;

//set pannable percentage 0 to 1
@property (nonatomic) CGFloat pannablePercentage;

// can be used to keep track of if we are ..
@property (nonatomic) BOOL interactive;

- (nullable instancetype)initWithViewController:(nullable UIViewController<MFSwipeNavigationProtocol>*)delegate;

- (nullable instancetype)initWithViewController:(nullable UIViewController *)viewController delegate:(nullable id<MFSwipeNavigationProtocol>)delegate;

@end
