Skip to content

Commit

Permalink
Minor Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
liam-i committed Feb 9, 2022
1 parent 8b1623b commit c0826f0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion LPEmptyDataSet.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'LPEmptyDataSet'
s.version = '0.2.0'
s.version = '0.2.1'
s.summary = 'A drop-in UITableView/UICollectionView superclass category for showing empty datasets whenever the view has no content to display.'

s.description = <<-DESC
Expand Down
4 changes: 2 additions & 2 deletions Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
PODS:
- LPEmptyDataSet (0.2.0)
- LPEmptyDataSet (0.2.1)
- LPHUD (1.2.3)

DEPENDENCIES:
Expand All @@ -15,7 +15,7 @@ EXTERNAL SOURCES:
:path: "./"

SPEC CHECKSUMS:
LPEmptyDataSet: c5a372f6e2eda3ded0193b3745dcb9ddd2c77a7f
LPEmptyDataSet: 25a66dbf37adf369e3e67210fe0c346a198b574a
LPHUD: f3d935bfa14f8fe29368395ed69704e29148dc49

PODFILE CHECKSUM: a3a0cd4b6f3f4706a1c9d63dfd71174c1365f8ea
Expand Down
5 changes: 5 additions & 0 deletions Sources/Classes/EmptyDataSet.swift
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,11 @@ extension UIScrollView: UIGestureRecognizerDelegate {
}
}

/// 空视图集内容视图
public var emptyDataSetContentView: UIView? {
emptyDataSetView
}

/// 如果空数据集可见,则为`true`
public var isEmptyDataSetVisible: Bool {
guard let view = objc_getAssociatedObject(self, &EmptyDataSetViewKey) as? EmptyDataSetView else { return false }
Expand Down

0 comments on commit c0826f0

Please sign in to comment.