init(destination:isActive:label:) was deprecated in ios16

Anyone facing this issue as with the new version of Xcode am encountering this. How to resolved this.

Well, two things:

  1. A deprecation means it will be removed in a future version of iOS. You can still use it now and ignore that warning; or
  2. Implement the new method instead. Use the information here: https://developer.apple.com/documentation/swiftui/migrating-to-new-navigation-types
init(destination:isActive:label:) was deprecated in ios16
 
 
Q