Skip to content

Commit

Permalink
feat: Minor Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
liam-i committed Mar 17, 2024
1 parent 1fe4a4f commit 926ee34
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Sources/Delegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public protocol BlankSlateDelegate: AnyObject {
/// Asks the delegate to know if the empty dataset should be rendered and displayed. `Default to true`
func blankSlateShouldDisplay(_ view: UIView) -> Bool

/// Ask the delegate whether a BlankSlateView should be inserted behind a sibling view when subviews.count > 1?
/// Ask the delegate whether a BlankSlateView should be inserted behind a sibling view when subviews.count > 1? `Default to true`
func blankSlateShouldBeInsertedAtBack(_ view: UIView) -> Bool

/// Asks the delegate for touch permission. `Default to true`
Expand Down
4 changes: 2 additions & 2 deletions Sources/Internal/Impl.swift
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ extension UIView {
}

var isBlankSlateVisible: Bool {
guard let view = objc_getAssociatedObject(self, &kBlankSlateViewKey) as? BlankSlate.View else { return false }
return view.isHidden == false
guard let blankSlateView else { return false }
return blankSlateView.isHidden == false
}

func dismissBlankSlateIfNeeded() {
Expand Down

0 comments on commit 926ee34

Please sign in to comment.