This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
} |