123456789101112131415161718192021222324252627282930313233343536373839404142 |
- //
- // XLPageViewControllerUtil.h
- // XLPageViewControllerExample
- //
- // Created by MengXianLiang on 2019/5/8.
- // Copyright © 2019 jwzt. All rights reserved.
- // https://github.com/mengxianliang/XLPageViewController
- // 工具类
- #import <Foundation/Foundation.h>
- #import <UIKit/UIKit.h>
- #import "XLPageViewControllerConfig.h"
- NS_ASSUME_NONNULL_BEGIN
- @interface XLPageViewControllerUtil : NSObject
- //文字宽度
- + (CGFloat)widthForText:(NSString *)text font:(UIFont *)font size:(CGSize)size;
- //颜色过渡
- + (UIColor *)colorTransformFrom:(UIColor*)fromColor to:(UIColor *)toColor progress:(CGFloat)progress;
- //执行阴影动画
- + (void)showAnimationToShadow:(UIView *)shadow shadowWidth:(CGFloat)shadowWidth fromItemRect:(CGRect)fromItemRect toItemRect:(CGRect)toItemRect type:(XLPageShadowLineAnimationType)type progress:(CGFloat)progress;
- @end
- /**
- 兼容子view滚动,添加"让我先滚"属性
- */
- @interface UIView (LetMeScroll)
- /**
- 让我先滚 默认 NO
- */
- @property (nonatomic, assign) BOOL xl_letMeScrollFirst;
- @end
- NS_ASSUME_NONNULL_END
|