添加LYEmptyView '~> 0.3.10'

This commit is contained in:
2025-11-09 20:54:14 +08:00
parent 883b222254
commit e5ddcc4308
34 changed files with 5454 additions and 3115 deletions

142
Pods/LYEmptyView/LYEmptyView/LYEmptyView.h generated Executable file
View File

@@ -0,0 +1,142 @@
//
// LYEmptyView.h
// LYEmptyViewDemo
//
// Created by liyang on 2017/5/10.
// Copyright © 2017年 liyang. All rights reserved.
//
#import "LYEmptyBaseView.h"
@interface LYEmptyView : LYEmptyBaseView
/**
是否自动显隐EmptyView, default=YES
*/
@property (nonatomic, assign) BOOL autoShowEmptyView;
/**
占位图是否完全覆盖父视图, default=NO
当设置为YES后占位图的backgroundColor默认为浅白色可自行设置
*/
@property (nonatomic, assign) BOOL emptyViewIsCompleteCoverSuperView;
/**
内容物上每个子控件之间的间距 default is 20.f , 这是统一设置的,每个子控件可单独设置
*/
@property (nonatomic, assign) CGFloat subViewMargin;
/**
内容物-垂直方向偏移 (此属性与contentViewY 互斥,只有一个会有效)
*/
@property (nonatomic, assign) CGFloat contentViewOffset;
/**
内容物-Y坐标 (此属性与contentViewOffset 互斥,只有一个会有效)
*/
@property (nonatomic, assign) CGFloat contentViewY;
/**
是否忽略scrollView的contentInset
*/
@property (nonatomic, assign) BOOL ignoreContentInset;
//-------------------------- image --------------------------//
/**
图片可设置固定大小 (default=图片实际大小)
*/
@property (nonatomic, assign) CGSize imageSize;
//-------------------------- titleLab 相关 --------------------------//
/**
标题字体, 大小default is 16.f
*/
@property (nonatomic, strong) UIFont *titleLabFont;
/**
标题文字颜色
*/
@property (nonatomic, strong) UIColor *titleLabTextColor;
/**
标题与图片之间的间距 default is @subViewMargin
*/
@property (nonatomic, assign) CGFloat titleLabMargin;
//-------------------------- detailLab 相关 --------------------------//
/**
详细描述字体大小default is 14.f
*/
@property (nonatomic, strong) UIFont *detailLabFont;
/**
详细描述最大行数, default is 2
*/
@property (nonatomic, assign) NSInteger detailLabMaxLines;
/**
详细描述文字颜色
*/
@property (nonatomic, strong) UIColor *detailLabTextColor;
/**
详细描述文字行间距
*/
@property (nonatomic, assign) NSInteger detailLabLineSpacing;
/**
详细描述 与 (标题或图片) 之间的间距 default is @subViewMargin
*/
@property (nonatomic, assign) CGFloat detailLabMargin;
//-------------------------- Button 相关 --------------------------//
/**
按钮字体, 大小default is 14.f
*/
@property (nonatomic, strong) UIFont *actionBtnFont;
/**
按钮的高度, default is 40.f
*/
@property (nonatomic, assign) CGFloat actionBtnHeight;
/**
按钮的宽度, default is 0.f, (此属性和actionBtnHorizontalMargin只有一个有效都>0时此属性优先级大)
*/
@property (nonatomic, assign) CGFloat actionBtnWidth;
/**
按钮的水平方向内边距, default is 30.f, (此属性和actionBtnWidth只有一个有效都>0时此属性优先级小)
*/
@property (nonatomic, assign) CGFloat actionBtnHorizontalMargin;
/**
按钮的圆角大小, default is 0
*/
@property (nonatomic, assign) CGFloat actionBtnCornerRadius;
/**
按钮边框border的宽度, default is 0
*/
@property (nonatomic, assign) CGFloat actionBtnBorderWidth;
/**
按钮边框颜色
*/
@property (nonatomic, strong) UIColor *actionBtnBorderColor;
/**
按钮文字颜色
*/
@property (nonatomic, strong) UIColor *actionBtnTitleColor;
/**
按钮背景颜色
*/
@property (nonatomic, strong) UIColor *actionBtnBackGroundColor;
/**
按钮背景渐变颜色集合2个
*/
@property (nonatomic, strong) NSArray<UIColor *> *actionBtnBackGroundGradientColors;
/**
按钮 与 (详细描述或标题或图片) 之间的间距 default is @subViewMargin
*/
@property (nonatomic, assign) CGFloat actionBtnMargin;
@end