Bundle - leacode/SwiftWings GitHub Wiki

Bundle Extensions

Source: Sources/Extensions/Foundation/Bundle/Bundle+Extensions.swift

Tests: Tests/Extensions/Bundle

appVersion

  • Reads CFBundleShortVersionString from the bundle’s infoDictionary and exposes it as an optional String.
  • Primarily used in diagnostics/UI labels without the boilerplate of reaching into the dictionary each time.

Example

if let version = Bundle.main.appVersion {
  print("Current build: v\(version)")
} else {
  print("Version unspecified")
}
⚠️ **GitHub.com Fallback** ⚠️