//
//  MFPageTitleView.h
//  KKCivilAd
//
//  Created by 雷俊博 on 2019/11/30.
//  Copyright © 2019 雷俊博. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "MFPageTitleViewConfig.h"

NS_ASSUME_NONNULL_BEGIN

@class MFPageTitleView;
@protocol MFPageTitleViewDelegate <NSObject>

- (void)selectedIndexInPageTitleView:(MFPageTitleView *)pageTitleView selectedIndex:(NSInteger)selectedIndex;

@end

@interface MFPageTitleView : UIView

@property (nonatomic, weak)id<MFPageTitleViewDelegate>delegate;


- (instancetype)initWithFrame:(CGRect)frame titles:(NSArray *)titles config:(MFPageTitleViewConfig *)config;

- (void)setPageTitleView:(CGFloat)progress originalIndex:(NSInteger)originalIndex targetIndex:(NSInteger)targetIndex;

@end

NS_ASSUME_NONNULL_END
