mirror of
https://github.com/ivanvorobei/SwiftUI.git
synced 2026-04-05 08:47:13 +02:00
Updated for Xcode 11 Beta3
This commit is contained in:
@@ -12,7 +12,7 @@ struct CategoryRow: View {
|
||||
var items: [Landmark]
|
||||
|
||||
var body: some View {
|
||||
VStack(alignment: .leading) {
|
||||
VStack(alignment: HorizontalAlignment.leading) {
|
||||
Text(self.categoryName)
|
||||
.font(.headline)
|
||||
.padding(.leading, 15)
|
||||
@@ -21,7 +21,7 @@ struct CategoryRow: View {
|
||||
ScrollView(showsHorizontalIndicator: false) {
|
||||
HStack(alignment: .top, spacing: 0) {
|
||||
ForEach(self.items.identified(by: \.name)) { landmark in
|
||||
NavigationButton(
|
||||
NavigationLink(
|
||||
destination: LandmarkDetail(
|
||||
landmark: landmark
|
||||
)
|
||||
|
||||
@@ -19,7 +19,7 @@ struct LandmarkList: View {
|
||||
|
||||
ForEach(userData.landmarks) { landmark in
|
||||
if !self.userData.showFavoritesOnly || landmark.isFavorite {
|
||||
NavigationButton(
|
||||
NavigationLink(
|
||||
destination: LandmarkDetail(landmark: landmark)) {
|
||||
LandmarkRow(landmark: landmark)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user