.lineLimit(
0)
Text(landmark.state)
.font(.caption)
Divider()
MapView(coordinate: landmark.locationCoordinate)
.scaledToFit()
}
.padding(16)
}
.navigationTitle("Landmarks")
}
}
struct LandmarkDetail_Previews: PreviewProvider {
static var previews: some View {
let modelData = ModelData()
return Group {
LandmarkDetail(landmark: modelData.landmarks[0])
.environmentObject(modelData)
.previewDevice("Apple Watch Series 5 - 44mm")
LandmarkDetail(landmark: modelData.landmarks[1])
.environmentObject(modelData)
.previewDevice("Apple Watch Series 5 - 40mm")
}
}
}