We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f043c24 commit eb971e4Copy full SHA for eb971e4
XCode/Sources/HttpServer.swift
@@ -9,7 +9,11 @@ import Foundation
9
10
public class HttpServer: HttpServerIO {
11
12
- public static let VERSION = "1.4.7"
+ public static let VERSION: String = {
13
+ let bundle = Bundle(for: HttpServer.self)
14
+ guard let version = bundle.infoDictionary?["CFBundleShortVersionString"] as? String else { return "Unspecified" }
15
+ return version
16
+ }()
17
18
private let router = HttpRouter()
19
0 commit comments