We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In the example bellow CitiesList described as a class in the message before code snippet. Which is not correct.
CitiesList
Notice that ContentView uses the markers property to render the list of cities by passing it to the CitiesList class.
struct CitiesList: View { @Binding var markers: [GMSMarker] var body: some View { GeometryReader { geometry in VStack(spacing: 0) { // ... // List of Cities List { ForEach(0..<self.markers.count) { id in let marker = self.markers[id] Button(action: { buttonAction(marker) }) { Text(marker.title ?? "") } } }.frame(maxWidth: .infinity) } } } }
Notice that ContentView uses the markers property to render the list of cities by passing it to the CitiesList struct.
Notice that ContentView uses the markers property to render the list of cities by passing it to the CitiesList.
The issue can be observed on the link https://developers.google.com/codelabs/maps-platform/maps-platform-ios-swiftui#6
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Issue description
In the example bellow
CitiesList
described as a class in the message before code snippet. Which is not correct.Notice that ContentView uses the markers property to render the list of cities by passing it to the CitiesList class.
Suggested solutions
Notice that ContentView uses the markers property to render the list of cities by passing it to the CitiesList struct.
Notice that ContentView uses the markers property to render the list of cities by passing it to the CitiesList.
Additional Info
The issue can be observed on the link https://developers.google.com/codelabs/maps-platform/maps-platform-ios-swiftui#6
The text was updated successfully, but these errors were encountered: