Instance Method
インスタンスメソッド
viewDidAppear(_:)
Notifies the view controller that its view has been added to a view hierarchy.
Declaration
宣言
override dynamic func viewDidAppear(_ animated: Bool
)
Parameters
パラメータ
animated
If true
, the view is being added using an animation.
Discussion
議論
SwiftUI calls this method after adding the hosting controller’s root view to the view hierarchy. You can override this method to perform custom tasks associated with the appearance of the view. If you override this method, you must call super
at some point in your implementation.
See Also
参照
Responding to View-Related Events
ビュー関連イベントに応答する
func viewWillAppear(Bool)
Notifies the view controller that its view is about to be added to a view hierarchy.
それのビューがもうすぐあるビュー階層に加えられることをビューコントローラに通知します。