Structure
Item
public struct Item: Codable, Identifiable, Comparable
An item describes a release in the update feed
Relationships
Conforms To
Codable
Comparable
Identifiable
Initializers
init(version:build:date:title:text:minOSVersion:infoUrl:downloadUrl:)
public init(version: String, build: String? = nil, date: Date? = nil, title: String? = nil, text: String? = nil, minOSVersion: OperatingSystemVersion?, infoUrl: URL? = nil, downloadUrl: URL? = nil)
Initialize the Item
struct
Parameters
Name | Type | Description |
---|---|---|
version | String |
semantic version number |
build | String? |
(optional) build identifier, relevant if there are multiple releases for the same version |
date | Date? |
(optional) release date |
title | String? |
(optional) update title |
text | String? |
(optional) update text |
minOSVersion | OperatingSystemVersion? |
(optional) minimum reqired OS version |
infoUrl | URL? |
(optional) URL to the a location with more info about the update |
downloadUrl | URL? |
(optional) URL to the download location |
Properties
id
var id: String