You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Recently, I needed to know when a BLTNItemManager has dismissed and didn't want to implement a dismiss handler and every BLTNItem so I added a publicly accessible dismissHandler to the BLTNItemManager class. I would make a PR but since it's a small addition, thought Id just comment the code here.
@objc public final class BLTNItemManager: NSObject {
/// Executes custom function when BLTNItemManager is dismissed
public var dismissHandler: (() -> Void)?
}
@nonobjc func completeDismissal() {
// Calling BLTNManager's Main Dismiss Block (Set by User)
dismissHandler?()
}
Hi @alexisakers thanks for the great library!
Recently, I needed to know when a BLTNItemManager has dismissed and didn't want to implement a dismiss handler and every BLTNItem so I added a publicly accessible dismissHandler to the BLTNItemManager class. I would make a PR but since it's a small addition, thought Id just comment the code here.
I followed the logic in this S/O answer: https://stackoverflow.com/a/45619821/8074346
The text was updated successfully, but these errors were encountered: