krz/domain-dig
an ios app for DNS & SSL analysis
clone: git clone https://gitbay.org/krz/domain-dig.git
v5.0.2: DomainDig/ReleaseNotes.swift · raw
1import Foundation
2
3/// Release notes shown in the "What's New" sheet, loaded from the bundled
4/// `ReleaseNotes.json`. No network access — the content ships with the app.
5struct ReleaseNotes: Decodable {
6 let version: String
7 let highlights: [String]
8
9 static func bundled() -> ReleaseNotes? {
10 guard let url = Bundle.main.url(forResource: "ReleaseNotes", withExtension: "json"),
11 let data = try? Data(contentsOf: url),
12 let notes = try? JSONDecoder().decode(ReleaseNotes.self, from: data) else {
13 return nil
14 }
15 return notes
16 }
17}