.navigationBarItems(trailing:
// 'PresentationLink' is deprecated: Use .sheet modifier instead.
PresentationLink(destination: ProfileHost()) {
Image(systemName: "person.crop.circle")
.imageScale(.large)
.accessibility(label: Text("User Profile"))
.padding()
}
)
How to change the about to use .sheet
modifier?
// init(_:minimumDate:maximumDate:displayedComponents:)' is deprecated: DatePicker labels are now required
DatePicker(
$profile.goalDate,
minimumDate: Calendar.current.date(byAdding: .year, value: -1, to: profile.goalDate),
maximumDate: Calendar.current.date(byAdding: .year, value: 1, to: profile.goalDate),
displayedComponents: .date
)
??
var animation: Animation {
// 'spring(mass:stiffness:damping:initialVelocity:)' is deprecated: Use response based spring() or interpolatingSpring() instead
Animation.spring(initialVelocity: 5)
.speed(2)
.delay(0.03 * Double(index))
}