Skip to content

Commit 6e85493

Browse files
committed
Added didPresent to SPController.
1 parent 076a048 commit 6e85493

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Sources/SparrowKit/UIKit/Classes/SPController.swift

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ import UIKit
2727
*/
2828
open class SPController: UIViewController {
2929

30+
open var didPresent: Bool = false
31+
3032
// MARK: - Init
3133

3234
public init() {
@@ -36,5 +38,12 @@ open class SPController: UIViewController {
3638
required public init?(coder: NSCoder) {
3739
super.init(coder: coder)
3840
}
41+
42+
// MARK: - Lifecycle
43+
44+
open override func viewDidAppear(_ animated: Bool) {
45+
super.viewDidAppear(animated)
46+
didPresent = true
47+
}
3948
}
4049
#endif

0 commit comments

Comments
 (0)