Skip to content

Commit

Permalink
Generate fully qualified names for Color/Data/Image resources
Browse files Browse the repository at this point in the history
Fixes #781
  • Loading branch information
tomlokhorst committed Dec 7, 2022
1 parent 857862a commit e7f427f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions Sources/RswiftGenerators/AssetCatalog+Generator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ extension ColorResource: AssetCatalogContent {
return VarGetter(
comments: ["Color `\(fullname)`."],
name: SwiftIdentifier(name: name),
typeReference: TypeReference(module: .host, rawName: "ColorResource"),
typeReference: TypeReference(module: .rswiftResources, rawName: "ColorResource"),
valueCodeString: code
)
}
Expand All @@ -118,7 +118,7 @@ extension DataResource: AssetCatalogContent {
return VarGetter(
comments: ["Data asset `\(fullname)`."],
name: SwiftIdentifier(name: name),
typeReference: TypeReference(module: .host, rawName: "DataResource"),
typeReference: TypeReference(module: .rswiftResources, rawName: "DataResource"),
valueCodeString: code
)
}
Expand All @@ -133,7 +133,7 @@ extension ImageResource: AssetCatalogContent {
return VarGetter(
comments: ["Image `\(fullname)`."],
name: SwiftIdentifier(name: name),
typeReference: TypeReference(module: .host, rawName: "ImageResource"),
typeReference: TypeReference(module: .rswiftResources, rawName: "ImageResource"),
valueCodeString: code
)
}
Expand Down
2 changes: 1 addition & 1 deletion Sources/RswiftGenerators/Storyboard+Generator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ private extension StoryboardResource.ViewController {
VarGetter(
name: SwiftIdentifier(name: identifier),
typeReference: genericTypeReference,
valueCodeString: #"StoryboardViewControllerIdentifier(identifier: "\#(identifier.escapedStringLiteral)", storyboard: name, bundle: bundle)"#
valueCodeString: #".init(identifier: "\#(identifier.escapedStringLiteral)", storyboard: name, bundle: bundle)"#
)
}
}

0 comments on commit e7f427f

Please sign in to comment.