NewsRelease
public struct NewsRelease : Decodable, Identifiable
News release data includes a title, abstract, and link to national park news releases, as well as an optional image.
-
Unique identifier for the news release
Declaration
Swift
public let id: String
-
A variable width character code used to identify a specific park
Declaration
Swift
public let parkCode: String
-
News release title
Declaration
Swift
public let title: String
-
Short description of news release content
Declaration
Swift
public let abstract: String
-
Date news release was released
Declaration
Swift
public let releaseDate: Date?
-
Link to full news release
Declaration
Swift
public let url: URL?
-
News release image
Declaration
Swift
public let image: NpsImage?
-
Declaration
Swift
public init(from decoder: Decoder) throws