Skip to content

Commit ec27247

Browse files
authored
Merge pull request #254 from mpsnp/master
Fixed issue #253
2 parents 0060fe0 + 0dcf013 commit ec27247

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

R.swift/Generators/StoryboardGenerator.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,12 +148,12 @@ struct StoryboardGenerator: Generator {
148148
// Validation
149149
let validateImagesLines = Set(storyboard.usedImageIdentifiers)
150150
.map {
151-
"if UIImage(named: \"\($0)\") == nil { throw ValidationError(description: \"[R.swift] Image named '\($0)' is used in storyboard '\(storyboard.name)', but couldn't be loaded.\") }"
151+
"if UIImage(named: \"\($0)\") == nil { throw Rswift.ValidationError(description: \"[R.swift] Image named '\($0)' is used in storyboard '\(storyboard.name)', but couldn't be loaded.\") }"
152152
}
153153
let validateViewControllersLines = storyboard.viewControllers
154154
.flatMap { vc in
155155
vc.storyboardIdentifier.map {
156-
"if _R.storyboard.\(sanitizedSwiftName(storyboard.name))().\(sanitizedSwiftName($0))() == nil { throw ValidationError(description:\"[R.swift] ViewController with identifier '\(sanitizedSwiftName($0))' could not be loaded from storyboard '\(storyboard.name)' as '\(vc.type)'.\") }"
156+
"if _R.storyboard.\(sanitizedSwiftName(storyboard.name))().\(sanitizedSwiftName($0))() == nil { throw Rswift.ValidationError(description:\"[R.swift] ViewController with identifier '\(sanitizedSwiftName($0))' could not be loaded from storyboard '\(storyboard.name)' as '\(vc.type)'.\") }"
157157
}
158158
}
159159
let validateLines = validateImagesLines + validateViewControllersLines

0 commit comments

Comments
 (0)