Skip to content

Instantly share code, notes, and snippets.

View Vinod-kumar-ios's full-sized avatar

Vinod Kumar Vinod-kumar-ios

  • Jaipur,India
View GitHub Profile
import UIKit
struct Configuration {
lazy var environment: Environment = {
if let configuration = Bundle.main.object(forInfoDictionaryKey: "Configuration") as? String {
if configuration == Environment.StagingDebug.rawValue{
return Environment.StagingDebug
}else{
return Environment.ProductionRelease
}