We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
didPresent
SPController
1 parent 076a048 commit 6e85493Copy full SHA for 6e85493
Sources/SparrowKit/UIKit/Classes/SPController.swift
@@ -27,6 +27,8 @@ import UIKit
27
*/
28
open class SPController: UIViewController {
29
30
+ open var didPresent: Bool = false
31
+
32
// MARK: - Init
33
34
public init() {
@@ -36,5 +38,12 @@ open class SPController: UIViewController {
36
38
required public init?(coder: NSCoder) {
37
39
super.init(coder: coder)
40
}
41
42
+ // MARK: - Lifecycle
43
44
+ open override func viewDidAppear(_ animated: Bool) {
45
+ super.viewDidAppear(animated)
46
+ didPresent = true
47
+ }
48
49
#endif
0 commit comments