杨锴
2025-04-16 09a372bc45fde16fd42257ab6f78b8deeecf720b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
//
//  VTEnumType.h
//  VTMagic
//
//  Created by tianzhuo on 1/17/16.
//  Copyright © 2016 tianzhuo. All rights reserved.
//
 
#ifndef VTEnumType_h
#define VTEnumType_h
 
/** 导航栏布局样式 */
typedef NS_ENUM(NSUInteger, VTLayoutStyle) {
    /** 默认样式,item自适应文本宽度,间距由itemSpacing决定 */
    VTLayoutStyleDefault,
    /** items等分导航条宽度,常用于item数较少时 */
    VTLayoutStyleDivide,
    /** 导航栏居中布局,间距由itemSpacing决定 */
    VTLayoutStyleCenter,
};
 
/** 页面滑动切换样式 */
typedef NS_ENUM(NSUInteger, VTSwitchStyle) {
    /** 默认样式,切换时有颜色渐变效果 */
    VTSwitchStyleDefault,
    /** 延迟响应切换 */
    VTSwitchStyleStiff,
    /** ??? */
    VTSwitchStyleUnknown,
};
 
/** 页面切换事件 */
typedef NS_ENUM(NSUInteger, VTSwitchEvent) {
    /** 加载 */
    VTSwitchEventLoad,
    /** 滑动 */
    VTSwitchEventScroll,
    /** 点击 */
    VTSwitchEventClick,
    /** 未知 */
    VTSwitchEventUnkown,
};
 
/** 导航栏滑块样式 */
typedef NS_ENUM(NSUInteger, VTSliderStyle) {
    /** 默认显示下划线 */
    VTSliderStyleDefault,
    /** 气泡样式,该样式下需结合bubbleInset和bubbleRadius使用 */
    VTSliderStyleBubble,
};
 
/** UIPanGestureRecognizer手势方向 */
typedef NS_ENUM(NSUInteger, VTPanRecognizerDirection) {
    /** 初始方向 */
    VTPanRecognizerDirectionUndefined,
    /** 垂直方向 */
    VTPanRecognizerDirectionVertical,
    /** 水平方向 */
    VTPanRecognizerDirectionHorizontal,
};
 
/** 页面生命周期状态状态 */
typedef NS_ENUM(NSUInteger, VTAppearanceState) {
    /** 默认状态,已经消失 */
    VTAppearanceStateDidDisappear,
    /** 即将消失 */
    VTAppearanceStateWillDisappear,
    /** 即将显示 */
    VTAppearanceStateWillAppear,
    /** 已经显示 */
    VTAppearanceStateDidAppear,
};
 
#endif /* VTEnumType_h */