Skip to content

Commit

Permalink
修改代码格式
Browse files Browse the repository at this point in the history
  • Loading branch information
ToBeDefined committed Apr 9, 2018
1 parent 829d172 commit fc341ec
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Source/WebView/TWebView.h
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,12 @@ typedef NS_ENUM(NSUInteger, TWebViewLoadStatus) {
#pragma mark - TWebView Property
@property (nonatomic, weak) id<TWebViewDelegate> _Nullable delegate;
@property (nonatomic, weak) id<TWebViewDelegate> _Nullable commonDelegate;

@property (nonatomic, readonly, strong) UIView *contentWebView;
@property (nonatomic, readonly, strong) UIWebView *uiWebView API_DEPRECATED("Use wkWebView instead, above iOS 8.0, return nil", ios(2.0, 8.0));
@property (nonatomic, readonly, strong) WKWebView *wkWebView API_AVAILABLE(ios(8.0));
@property (nonatomic, readonly, strong) UIScrollView *scrollView;

@property (nonatomic, readonly) BOOL canGoBack;
@property (nonatomic, readonly) BOOL canGoForward;
@property (nonatomic, readonly, getter=isLoading) BOOL loading;
Expand All @@ -85,9 +87,7 @@ typedef NS_ENUM(NSUInteger, TWebViewLoadStatus) {
@property (nonatomic, assign) BOOL canSelectContent; // if set NO, Block most of the pages select content.
@property (nonatomic, assign) BOOL canScrollChangeSize;
@property (nonatomic, assign) BOOL blockTouchCallout; // Block ActionSheet & Long Press Menus
// only uper ios 8.0
@property (nonatomic, assign) BOOL canScrollBack API_AVAILABLE(ios(8.0));
// only uper ios 9.0
@property (nonatomic, assign) BOOL block3DTouch API_AVAILABLE(ios(9.0));

// Texts
Expand Down
9 changes: 5 additions & 4 deletions Source/WebView/TWebView.m
Original file line number Diff line number Diff line change
Expand Up @@ -49,16 +49,17 @@

@interface TWebView()

@property (nonatomic, strong) WKProcessPool *processPool;

@property (nonatomic, assign) BOOL forceOverrideCookie;

@property (nonatomic, strong) TWKWebViewDelegate *wkWebViewDelegate;
@property (nonatomic, strong) TUIWebViewDelegate *uiWebViewDelegate;

@property (nonatomic, strong) UIProgressView *progressView;
@property (nonatomic, weak) NSLayoutConstraint *progressViewTopConstraint;
@property (nonatomic, weak) NSLayoutConstraint *progressViewHeightConstraint;

@property (nonatomic, assign) BOOL forceOverrideCookie;
@property (nonatomic, strong) UIProgressView *progressView;
@property (nonatomic, strong) WKProcessPool *processPool;

@end

@implementation TWebView
Expand Down

0 comments on commit fc341ec

Please sign in to comment.