PresentationButton init has been altered for Xcode 11 Beta 2 to use a ViewBuilder - https://developer.apple.com/documentation/swiftui/presentationbutton/3326830-init?changes=latest_beta
Examples listed in SwiftUI Tutorials Need Updating
From: Working with UI Controls Tutorial
Home.swift - Beta 1 code
.navigationBarItems(trailing:
PresentationButton(
Image(systemName: "person.crop.circle")
.imageScale(.large)
.accessibility(label: Text("User Profile"))
.padding(),
destination: ProfileHost()
)
)
Home.swift - Beta 2 code
.navigationBarItems(trailing:
PresentationButton(
destination: ProfileHost(), label:
{ Image(systemName: "person.crop.circle")
.imageScale(.large)
.accessibility(label: Text("User Profile"))
.padding()
}
)
)