Before I had:
static var type: Build.`Type` {
Now I have:
static var type: Build.Type {
Swift is not smart enough to figure it out without the backtick.
Full class:
import Foundation
struct Build {
enum `Type`: String {
case alpha
case beta
case production
}
static var type: Build.`Type` {
let bundleIdentifier = Bundle.main.bundleIdentifier
let components = bundleIdentifier!.components(separatedBy: ".")
let lastComponent = components.last!
if let type = self.Type(rawValue: lastComponent) {
return type
} else {
return .production
}
}
}
Thanks, I'll look into it.
Fixed in 0.27.0
Fantastic, thanks!
Still happening in version 0.28.1

Doesn't seem like I can reopen this issue, could you do it for me?
Sorry about that, I thought it was fixed, but it seems not. I'll take another look.
Fixed in 0.28.2
Most helpful comment
Fixed in 0.27.0