Structures
The following structures are available globally.
-
A view that displays a banner ad.
Note
Note Ads are displayed 50% of the time. Ads can be disabled in the app settings. In addition, the bid floor setting in Google AdMob is set very high, further reducing the likelihood of an ad being displayed. The goal is to provide a non-intrusive ad experience for the user while still supporting the development of new features and improvements.Declaration
Swift
struct AdView : View, Equatable
-
A view that wr
See moreDeclaration
Swift
struct ImageBackground : View
-
Undocumented
See moreDeclaration
Swift
struct ImageBackgroundWrapper<Content> : View where Content : View
-
Undocumented
See moreDeclaration
Swift
struct TopoBackgroundModifier : ViewModifier
-
A view that presents a sheet with a title and a close button. This view is intended to be used as a modal sheet.
See moreDeclaration
Swift
struct InfoSheetView<Content> : View where Content : View
-
A view that presents a snackbar with a title and a message.
See moreDeclaration
Swift
public struct Snackbar : Identifiable, Equatable
-
A view that displays a chip with a trend arrow and value.
See moreDeclaration
Swift
public struct TrendChipView : View
-
A view that displays a message, subtitle, and optional action button. This view is intended to be used as a placeholder when no data is available, when data is loading, or when an error occurs.
See moreDeclaration
Swift
public struct UtilityBlockView : View
-
A view for displaying websites within the app
See moreDeclaration
Swift
struct WebViewContent : UIViewRepresentable
Parameters
url
The URL of the website to display
-
A struct that represents the trend of a gauge metric.
See moreDeclaration
Swift
public struct GaugeTrend
-
Undocumented
See moreDeclaration
Swift
struct ReadingIdentifier : Hashable
-
a reference of a gauge alert used to determine if an alert has been edited
See moreDeclaration
Swift
struct GaugeAlertRef
-
A struct that represents a state or province.
See moreDeclaration
Swift
struct StateValue : Codable, Equatable, Hashable
-
A view modifier that applies the default list style for the app.
See moreDeclaration
Swift
struct GaugeWatcherListModifier : ViewModifier
-
A view modifier that applies the default list row style for the app.
See moreDeclaration
Swift
struct GaugeWatcherListRowModifier : ViewModifier
-
Undocumented
See moreDeclaration
Swift
struct InfoSheetListModifier : ViewModifier
-
A view modifier that applies an animated skeleton text style. ie, a gray rectangle with rounded corners while the text is loading.
See moreDeclaration
Swift
struct SkeletonTextModifier : ViewModifier
-
Adds a snackbar overlay to a view. Typically used with tier one (root tab views) containing views.
See moreDeclaration
Swift
struct SnackbarModifier : ViewModifier
-
Undocumented
See moreDeclaration
Swift
struct TrackTapAction : ViewModifier
-
A service for managing background tasks
Note
Background tasks are scheduled to run 15 minutes after the app is backgrounded.Declaration
Swift
struct BackgroundService
-
A service for storing and retrieving data from UserDefaults
See moreDeclaration
Swift
struct LocalStorageService
-
Used when migrating and wiping all data and re-seeding. if a user has favorites, wipes all data, then navigates back to Favorites, then tries to go to a detail view, we need the same id (PersistentIdentifier) and siteID.
See moreDeclaration
Swift
struct TemporaryFavoriteGauge : Codable, Hashable
-
Undocumented
See moreDeclaration
Swift
struct PromptService : ViewModifier
-
Methods for interacting with the StoreKit framework.
See moreDeclaration
Swift
struct StoreKitService
-
An object representing a deep link.
See more"gaugewatcher://open-gauge?country=\(country)&state=\(state)&siteID=\(siteID)"
is the format of a deep link for opening a gauge detail view.Declaration
Swift
struct DeepLink : CustomStringConvertible
-
Undocumented
See moreDeclaration
Swift
struct GaugeAlertsList : View
-
Undocumented
See moreDeclaration
Swift
struct ForecastView : View
-
Undocumented
See moreDeclaration
Swift
struct CleanedForecast : Identifiable
-
A view that displays the coordinates of a gauge station as a tapable label to copy the coordinates to the clipboard
- latitude: The latitude of the gauge station
- longitude: The longitude of the gauge station
Declaration
Swift
struct GaugeCoordinatesView : View
-
A view that displays the details of a gauge station
See moreDeclaration
Swift
struct GaugeDetail : View
-
A header view for the gauge detail screen Displays the gauge name and an info button
See moreDeclaration
Swift
struct GaugeDetailHeader : View
-
Undocumented
See moreDeclaration
Swift
struct GaugeDetailInfoSheet : View
-
A button that toggles the favorite status of a gauge
- gaugeID: The ID of the gauge to toggle
Declaration
Swift
struct GaugeFavoriteToggle : View
-
A view that displays a map of a gauge and nearby gauges.
See moreDeclaration
Swift
struct GaugeMap : View
-
A view that displays navigation controls for a gauge’s subviews; source, map, and weather.
- gauge: The gauge to display navigation controls for
Declaration
Swift
struct GaugeNavigationControls : View
-
A chart view that displays gauge readings
- siteID: The ID of the site to display readings for
Declaration
Swift
struct GaugeReadingChart : View
-
A button that shares a gauge’s deep link
See moreDeclaration
Swift
struct GaugeShareButton : View
-
A sheet that displays the source of a gauge
- gauge: The gauge to display the source for
- onClose: A closure to call when the sheet is closed
Note
This view is only available for USGS gauges.Declaration
Swift
struct GaugeSourceSheet : View
-
A view that displays the last updated time and the time until the next refresh
See moreDeclaration
Swift
struct LastUpdatedView : View
-
Undocumented
See moreDeclaration
Swift
struct FavoriteGaugeTile : View
-
Undocumented
See moreDeclaration
Swift
struct GaugeMapMarker : View, Equatable
-
The primary bottom sheet for searching gauges, viewing favorites, and recent gauges. Note: This view is only used on iPhone.
See moreDeclaration
Swift
struct GaugeSearchSheet : View
-
Undocumented
See moreDeclaration
Swift
struct MapLoadingView : View
-
Undocumented
See moreDeclaration
Swift
struct SearchContentView : View
-
Undocumented
See moreDeclaration
Swift
struct SearchFilters : View
-
A row in the search list.
See moreDeclaration
Swift
struct SearchListRow : View
-
Undocumented
See moreDeclaration
Swift
struct SearchView : View
-
Undocumented
See moreDeclaration
Swift
struct AdvertisingView : View
-
A view that displays the legal information in a web view.
See moreDeclaration
Swift
struct LegalView : View
-
A view that displays
See moreGaugeSearchMap
settings.Declaration
Swift
struct MapSettings : View
-
A view that displays the privacy policy in a web view.
See moreDeclaration
Swift
struct PrivacyView : View
-
A view that displays the app settings. Screens available in the settings view:
- Permissions
- Developer Feedback
- Legal
- Privacy Policy
Declaration
Swift
struct SettingsView : View
-
Undocumented
See moreDeclaration
Swift
struct SystemStatusView : View