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

前端 未结 3 742
滥情空心
滥情空心 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:02

    It was a bug on Apple's end.

    .onAppear() now works as it is supposed to in iOS 13.1 and Xcode 11 Beta 7.

    When navigating forwards and backwards to the NavigationView, .onAppear() will trigger.

提交回复
热议问题