We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents fc11595 + 1dabe88 commit d7fa6e6Copy full SHA for d7fa6e6
Shared/Samples/Identify raster cell/IdentifyRasterCellView.swift
@@ -113,6 +113,9 @@ private extension IdentifyRasterCellView {
113
// Get the first raster cell from the identify result.
114
let rasterCell = identifyResult.geoElements.first(where: { $0 is RasterCell })
115
return rasterCell as? RasterCell
116
+ } catch is CancellationError {
117
+ // Does nothing if the error is a cancellation error.
118
+ return nil
119
} catch {
120
self.error = error
121
return nil
0 commit comments