Skip to content

Commit ab09694

Browse files
committed
add in changes for review comments
1 parent ada02c3 commit ab09694

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

Shared/Samples/Show shapefile metadata/ShowShapefileMetadataView.swift

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ struct ShowShapefileMetadataView: View {
2020
@State private var model = Model()
2121
/// The error that occurred, if any, when trying to load the shapefile or display its metadata.
2222
@State private var error: Error?
23-
/// Boolean value represent the state of the metadata popup view.
23+
/// A Boolean value specifying whether the metadata view should be shown
2424
@State private var showMetadata: Bool = false
2525

2626
var body: some View {
@@ -113,17 +113,13 @@ private extension ShowShapefileMetadataView {
113113

114114
var body: some View {
115115
VStack(alignment: .center, spacing: 16) {
116-
if let credits = model.shapefileInfo?.credits {
117-
Text(credits)
116+
if let info = model.shapefileInfo {
117+
Text(info.credits)
118118
.bold()
119-
}
120-
121-
if let summary = model.shapefileInfo?.summary {
122-
Text(summary)
119+
Text(info.summary)
123120
.font(.caption)
124121
.multilineTextAlignment(.leading)
125122
}
126-
127123
if let image = model.thumbnailImage {
128124
Image(uiImage: image)
129125
.resizable()

0 commit comments

Comments
 (0)