File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed
Shared/Samples/Show shapefile metadata Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff 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 ( )
You can’t perform that action at this time.
0 commit comments