I’m trying to improve dependency injection code by using macros. However, I’m wondering if it’s not possible to expand macros as shown in the image below. Is it inherently impossible, or is there another way to achieve this?
extension DependencyValues {
var repository: RepositoryProtocol {
get { self[RepositoryKey.self] }
set { self[RepositoryKey.self] = newValue }
}
}