Posts

Post not yet marked as solved
3 Replies
2.3k Views
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_betaExamples listed in SwiftUI Tutorials Need UpdatingFrom: Working with UI Controls TutorialHome.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() } ))
Posted
by PaulMJax.
Last updated
.