Is onAppear and onDisappear in a NavigationView of a SwiftUI app behaving as expected?

前端 未结 3 733
滥情空心
滥情空心 2021-02-13 16:18

I would like to know if the behavior of onAppear and onDisappear in SwiftUI (Xcode 11 beta 6 when I wrote this) is what a developer would find more useful or it is just being mo

3条回答
  •  时光说笑
    2021-02-13 17:00

    Starting Xcode 11.2 beta (released 02/10/2019), both methods (including .onDisappear()) are being correctly triggered.

    Note that .onDisappear() was not being triggered until this beta release.

提交回复
热议问题