mirror of
https://github.com/realm/SwiftLint.git
synced 2026-06-06 20:18:40 +00:00
21 lines
497 B
Swift
21 lines
497 B
Swift
//
|
|
// Version.swift
|
|
// SwiftLint
|
|
//
|
|
// Created by Marcelo Fabri on 27/12/16.
|
|
// Copyright © 2016 Realm. All rights reserved.
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct Version {
|
|
public let value: String
|
|
|
|
public static let current: Version = {
|
|
let value = Bundle(identifier: "io.realm.SwiftLintFramework")!
|
|
.object(forInfoDictionaryKey: "CFBundleShortVersionString")!
|
|
// swiftlint:disable:next force_cast
|
|
return Version(value: value as! String)
|
|
}()
|
|
}
|