zjf
2023-03-06 392b76515f40376b6d36f40a114850ef63650384
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
//
//  SGScanViewConfigure.h
//  SGQRCodeExample
//
//  Created by kingsic on 2022/7/9.
//  Copyright © 2022 kingsic. All rights reserved.
//
 
#import <UIKit/UIKit.h>
 
typedef enum : NSUInteger {
    /// 默认与边框线同中心点
    SGCornerLoactionDefault,
    /// 在边框线内部
    SGCornerLoactionInside,
    /// 在边框线外部
    SGCornerLoactionOutside
} SGCornerLoaction;
 
NS_ASSUME_NONNULL_BEGIN
 
@interface SGScanViewConfigure : NSObject
/// 类方法创建
+ (instancetype)configure;
 
/// 扫描线
@property (nonatomic, copy) NSString *scanline;
 
/// 扫描线每次移动的步长,默认为:3.5f
@property (nonatomic, assign) CGFloat scanlineStep;
 
/// 扫描线是否执行逆动画,默认为:NO
@property (nonatomic, assign) BOOL autoreverses;
 
/// 扫描线是否从扫描框顶部开始扫描,默认为:NO
@property (nonatomic, assign) BOOL isFromTop;
 
/// SGScanView 背景色,默认为:[[UIColor blackColor] colorWithAlphaComponent:0.5]
@property (nonatomic, strong) UIColor *color;
 
/// 是否需要辅助扫描框,默认为:NO
@property (nonatomic, assign) BOOL isShowBorder;
 
/// 辅助扫描框的颜色,默认为:[UIColor whiteColor]
@property (nonatomic, strong) UIColor *borderColor;
 
/// 辅助扫描框的宽度,默认为:0.2f
@property (nonatomic, assign) CGFloat borderWidth;
 
/// 辅助扫描边角位置,默认为:SGCornerLoactionDefault
@property (nonatomic, assign) SGCornerLoaction cornerLocation;
 
/// 辅助扫描边角颜色,默认为:[UIColor greenColor]
@property (nonatomic, strong) UIColor *cornerColor;
 
/// 辅助扫描边角宽度,默认为:2.0f
@property (nonatomic, assign) CGFloat cornerWidth;
 
/// 辅助扫描边角长度,默认为:20.0f
@property (nonatomic, assign) CGFloat cornerLength;
 
@end
 
NS_ASSUME_NONNULL_END