Skip to content

Commit

Permalink
Update Empty+UIScrollView.swift
Browse files Browse the repository at this point in the history
  • Loading branch information
linhay authored Apr 11, 2020
1 parent 7ef5d82 commit 7f44bc9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/Core/Empty+UIScrollView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ extension UIScrollView {
}

var oldIsScrollEnabled: Bool {
get { return objc_getAssociatedObject(self, EmptyDataKey.oldEmptyView) as? Bool ?? self.isScrollEnabled }
set { objc_setAssociatedObject(self, EmptyDataKey.oldEmptyView, newValue, .OBJC_ASSOCIATION_RETAIN_NONATOMIC) }
get { return objc_getAssociatedObject(self, EmptyDataKey.oldIsScrollEnabled) as? Bool ?? self.isScrollEnabled }
set { objc_setAssociatedObject(self, EmptyDataKey.oldIsScrollEnabled, newValue, .OBJC_ASSOCIATION_RETAIN_NONATOMIC) }
}

// 私有属性 (多次赋值emptyView时,防止多个emptyView同时出现)
Expand Down

0 comments on commit 7f44bc9

Please sign in to comment.