CYWebViewProgressView.h 771 B

1234567891011121314151617181920212223242526272829
  1. //
  2. // CYWebViewProgressView.h
  3. // CYWebViewProgressView
  4. //
  5. // Created by Chen Yiliang on 2020/3/6.
  6. // Copyright © 2020 cyl. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. #import <WebKit/WebKit.h>
  10. @interface CYWebViewProgressView : UIView
  11. @property (nonatomic, assign) double progress;
  12. @property (nonatomic, strong) UIView *progressBarView;
  13. @property (nonatomic, assign) NSTimeInterval barAnimationDuration; // default 0.1
  14. @property (nonatomic, assign) NSTimeInterval fadeAnimationDuration; // default 0.27
  15. @property (nonatomic, assign) NSTimeInterval fadeOutDelay; // default 0.1
  16. - (void)setProgress:(double)progress animated:(BOOL)animated;
  17. @end
  18. @interface WKWebView (CYWebViewProgressView)
  19. @property (nonatomic) CYWebViewProgressView *progressView;
  20. @end